commit | 9c0fe596121684c8b6a82a293c10e78d3f5489f7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Jan 18 16:25:31 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Jan 18 16:25:31 2009 +0100 |
tree | 7327e4827a0478f905592d9bfd09cfe1f00e1239 | |
parent | 0c2fc1f39df79da92b9aaccca513a0c184af69a4 [diff] |
[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.