MINOR: connection: add a new conn_drain() function
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 10:41:52 +0000 (11:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 21:27:16 +0000 (22:27 +0100)
commit2aefad5df77e8f345a6e7eafbe470c984492b194
tree452d4dcc05347c606985969a5ffaf10e4a5cf16b
parent7f4bcc312d51f6ac659b2aeb5bb44b9b4c0d8621
MINOR: connection: add a new conn_drain() function

Till now there was no way to know from a connection if a previous
call to drain() had done any change. This function is used to drain
incoming data and to update the connection's flags at the same time.
It also correctly sets the polling flags on the connection if the
drain function indicates inability to receive. This function will
be used preferably over ctrl->drain() when a connection is used.
include/proto/connection.h