timeoutsocket.py problem
Ben Wolfson
wolfson at uchicago.edu
Fri Apr 20 15:43:00 EDT 2001
I'm using timeoutsocket.py with SocketServer.py and getting a rather odd
problem.
In get_request() I have the lines
conn, addr = self.socket.accept()
print conn, addr
return conn,addr
Which resulted in one run in
<socket object, fd=6, family=2, type=1, protocol=0> ('128.135.12.7',
47906)
However, in the Handler class' setup() method, when I do:
print self.request
the file descriptor is -1 and, of course, I can't use the socket.
Any advice?
--
Barnabas T. Rumjuggler
Thou hast been called, O Sleep! The friend of woe,
But 'tis the happy who have called thee so.
-- Robert Southey
More information about the Python-list
mailing list