select.select question

Greg Ewing see_reply_address at something.invalid
Mon Aug 26 02:21:38 EDT 2002


Heiko Wundram wrote:

> 	# Set nonblocking and initialize data.
>         self.request.setblocking(0)


You shouldn't be making the socket non-blocking. Select
will return immediately for a non-blocking socket,
whether there's data there or not.


-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list