]> git.kaiwu.me - haproxy.git/commit
[OPTIM] stream_sock: factor out the buffer full handling out of the loop
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Jan 2009 10:38:52 +0000 (11:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Jan 2009 10:38:52 +0000 (11:38 +0100)
commit68eac13217fa4f4015e30920644670087c0660b9
treea1c7a432ba107e2fab0a0fa67c24db9def1c4bb5
parent03d60bbaf96b6e5c1e0a8a6abb6a145488464c58
[OPTIM] stream_sock: factor out the buffer full handling out of the loop

Handling the buffer full condition is not trivial and this code was
duplicated inside the loop. Move it out of the loop at a single place.
src/stream_sock.c