]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream_interface: try to call si_cs_send() earlier.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 28 Aug 2018 17:37:41 +0000 (19:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Aug 2018 17:46:45 +0000 (19:46 +0200)
commitc7ffa91763de09b9adef197ca3d67395cc411fc2
tree367589bbd3d8eef9154e8a7d3a4580ad37dc9312
parent4501c3e0992ca03e082cce81e0fff21067a59ddd
BUG/MEDIUM: stream_interface: try to call si_cs_send() earlier.

Call si_cs_send() at the beginning of si_cs_wake_cb(), instead of from
stream_int_notify-), so that if we get a connection error while trying to
send, the stream_interface will get SI_FL_ERR, the associated task will
be woken up, and the connection will be properly destroyed.

No backport needed.
src/stream_interface.c