]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: make conn_drain() perform more controls
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2015 23:32:20 +0000 (00:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2015 23:32:20 +0000 (00:32 +0100)
commitf31fb07958fa22566cad2bbab1b16aa3ac0ac3e5
tree5d83c487841482f8539c6a644efdd5608d445ced
parent0a03c0f022faf2773995fc8b9d14256c8a306e5a
MEDIUM: connection: make conn_drain() perform more controls

Currently si_idle_conn_null_cb() has to perform some low-level checks
over the file descriptor and the connection configuration that should
only belong to conn_drain(). Let's move these controls there. The
function now automatically checks for errors and hangups on the file
descriptor for example, and disables recv polling if there's no drain
function at the control layer.
include/proto/connection.h
src/stream_interface.c