Movatterモバイル変換
[0]ホーム
timeoutsocket.py problem
Ben Wolfsonwolfson at uchicago.edu
Fri Apr 20 15:43:00 EDT 2001
I'm using timeoutsocket.py with SocketServer.py and getting a rather oddproblem.In get_request() I have the linesconn, addr = self.socket.accept()print conn, addrreturn conn,addrWhich 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.requestthe file descriptor is -1 and, of course, I can't use the socket.Any advice?-- Barnabas T. RumjugglerThou 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-listmailing list
[8]ページ先頭