]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: connection: always disable polling upon error
authorWilly Tarreau <w@1wt.eu>
Sat, 24 Nov 2012 10:09:07 +0000 (11:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 24 Nov 2012 10:09:07 +0000 (11:09 +0100)
commit36fb02c526a3583227780e0e682f6be403ff6562
tree20574d198c5b0d3bd746db3f192cbafd7dab5df1
parentf0837b259b3c8191926d306e69d2cfae71afdbb4
BUG/MEDIUM: connection: always disable polling upon error

Commit 0ffde2cc in 1.5-dev13 tried to always disable polling on file
descriptors when errors were encountered. Unfortunately it did not
always succeed in doing so because it relied on detecting polling
changes to disable it. Let's use a dedicated conn_stop_polling()
function that is inconditionally called upon error instead.

This managed to stop a busy loop observed when a health check makes
use of the send-proxy protocol and fails before the connection can
be established.
include/proto/connection.h
src/connection.c