Roy Smith wrote: > Serge Orlov <[EMAIL PROTECTED]> wrote: > > sockobj.settimeout(550) > > [...] > > Also, as other people pointed out, you'd better make buffered socket > > with .makefile() socket method. > > If I understand the docs for the socket module correctly, these two > suggestions are mutually incompatable.
Perhaps this restriction was lifted? >>> s = socket.socket() >>> s.settimeout(15) >>> s.connect(("www.python.org", 80)) >>> f = s.makefile() >>> f.readline() Traceback (most recent call last): File "<pyshell#21>", line 1, in -toplevel- f.readline() File "C:\Python24\lib\socket.py", line 340, in readline data = self._sock.recv(self._rbufsize) timeout: timed out >>> -- http://mail.python.org/mailman/listinfo/python-list