]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stream_sock: factor out the return path in case of no-writes
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Jan 2009 19:10:39 +0000 (20:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Jan 2009 09:15:02 +0000 (10:15 +0100)
commit4d9b1dee9f15406c87d73181a7cf8b177b68452b
treef6773ac13690aa73898656feb48253f1a0ab49f3
parentdcef33fa9b9cdc9637b1fc3abbe2b21198d18f29
[MEDIUM] stream_sock: factor out the return path in case of no-writes

Previously, we wrote nothing only if the buffer was empty. Now with
send_max, we can also write nothing because we are not allowed to send
anything due to send_max.

The code starts to look like spaghetti. It needs to be rearranged a
lot before merging the splice patches.
src/stream_sock.c