[issue1503] test_xmlrpc is still flakey

Ralf Schmitt report at bugs.python.org
Wed Mar 26 22:25:12 CET 2008


Ralf Schmitt <schmir at gmail.com> added the comment:

The current buildbot has errors similar to this one (I assume):

Exception happened during processing of request from ('127.0.0.1', 53126)
Traceback (most recent call last):
  File "/Users/ralf/trunk/Lib/SocketServer.py", line 281, in
_handle_request_noblock
    self.process_request(request, client_address)
  File "/Users/ralf/trunk/Lib/SocketServer.py", line 307, in process_request
    self.finish_request(request, client_address)
  File "/Users/ralf/trunk/Lib/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/ralf/trunk/Lib/SocketServer.py", line 615, in __init__
    self.handle()
  File "/Users/ralf/trunk/Lib/BaseHTTPServer.py", line 318, in handle
    self.handle_one_request()
  File "/Users/ralf/trunk/Lib/BaseHTTPServer.py", line 301, in
handle_one_request
    self.raw_requestline = self.rfile.readline()
  File "/Users/ralf/trunk/Lib/socket.py", line 369, in readline
    data = self._sock.recv(self._rbufsize)
error: [Errno 35] Resource temporarily unavailable
----------------------------------------

 

The problem is that the test calls
 
 serv.socket.settimeout(3)

in the http_server function. This implicitly sets the server socket to
nonblocking state.
The accept call then returns a socket object, which
- is blocking on OS X 10.4 ppc
- is nonblocking on linux

I can easily reproduce that on my mac mini g4 with python 2.6.

----------
nosy: +schmir
versions: +Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1503>
__________________________________


More information about the Python-bugs-list mailing list