brueckd at brueckd at
Mon Aug 26 11:10:01 EDT 2002

On Mon, 26 Aug 2002, Greg Ewing 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.

I don't think this is true. This code:

import select
from socket import *
s = socket(AF_INET, SOCK_STREAM)
s.connect(('', 80))

pauses for one second before returning on both my Linux box and my WinXP 


P.S. Thanks for making Pyrex!

More information about the Python-list mailing list