]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: only call the data->wake callback on activity
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Oct 2012 19:04:48 +0000 (21:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 20:26:10 +0000 (22:26 +0200)
commit9e272bf95df16b9bfe6713cab0dc510a35e1f8e2
tree63127b4a38d61677bbc54551fbc88b2a0814678d
parentf3a6d7e115249483cb27de6e4ae9c0dbb54969e6
MEDIUM: connection: only call the data->wake callback on activity

We now check the connection flags for changes in order not to call the
data->wake callback when there is no activity. Activity means a change
on any of the CO_FL_*_SH, CO_FL_ERROR, CO_FL_CONNECTED, CO_FL_WAIT_CONN*
flags, as well as a call to data->recv or data->send.
include/types/connection.h
src/connection.c