commit | 3f3997e6c6e994883611aa2420990108a8d32dc7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Dec 15 15:21:32 2013 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Dec 16 02:23:52 2013 +0100 |
tree | e6ba30ed6084a092596aba8f82e085947f88e01d | |
parent | ad38acedaa7b5bd0f6c2f4d5816b331f35b7d07e [diff] |
OPTIM: http: set CF_READ_DONTWAIT on response message strace shows a lot of EAGAIN on small response messages. This is caused by the fact that the READ_DONTWAIT flag is not set on response message, it's only there when we want to flush pending data. For small responses, it's a waste of CPU cycles to call recv() for nothing since most of the time, everything we'll need will be in the first response. Also, this will offer more opportunities for using splice() to transfer data.