Message183831
Because otherwise sendfile() fails with EAGAIN many times before sending any actual data.
select() / poll() make sure the while loop awakens only when the socket is ready to be written (as opposed to continuously catching EAGAIN and wait for sendfile() to succeed). |
|
Date |
User |
Action |
Args |
2013-03-09 16:41:27 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, pitrou, eric.araujo, rosslagerwall |
2013-03-09 16:41:27 | giampaolo.rodola | set | messageid: <1362847287.3.0.116731814504.issue13564@psf.upfronthosting.co.za> |
2013-03-09 16:41:27 | giampaolo.rodola | link | issue13564 messages |
2013-03-09 16:41:27 | giampaolo.rodola | create | |
|