commit | a456f2a059aed7e308977f49d7200ad8b3a66636 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Jan 18 17:38:44 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Jan 18 19:43:47 2009 +0100 |
tree | 0be608d44624f924daad78de7f546fee4c8cf834 | |
parent | d2def0fd254efab99be009b381b5361ce627a668 [diff] |
[MEDIUM] stream_sock: try to send pending data on chk_snd() When the producer calls stream_sock_chk_snd(), we now try to send all pending data asynchronously. If it succeeds, we don't have to enable polling on the FD which saves about half of the calls to epoll_wait(). In stream_sock_read(), we finally set the WAIT_ROOM flag as soon as possible, in preparation of the splice code. We reset it when we detect that some room has been released either in the buffer or in the splice.