Giampaolo Rodola' added the comment:

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).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13564>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to