]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stream_sock_read: call ->chk_snd whenever there are data pending
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Jan 2009 15:25:31 +0000 (16:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Jan 2009 15:25:31 +0000 (16:25 +0100)
commit9c0fe596121684c8b6a82a293c10e78d3f5489f7
tree7327e4827a0478f905592d9bfd09cfe1f00e1239
parent0c2fc1f39df79da92b9aaccca513a0c184af69a4
[MEDIUM] stream_sock_read: call ->chk_snd whenever there are data pending

The condition to cakk ->chk_snd() in stream_sock_read() was suboptimal
because we did not call it when the socket was shut down nor when there
was an error after data were added.

Now we ensure to call is whenever there are data pending.

Also, the "full" condition was handled before calling chk_snd(), which
could cause deadlock issues if chk_snd() did consume some data.
src/stream_sock.c