New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_urllib2_localnet sporadic failures closing socket #50630
Comments
Gentoo linux, r73699, I'm seeing sporadic failures in test_sending_headers It happens about once every other run in one or the other of those. I In both cases it is failing in the close. Here is an example traceback: test_sending_headers (test.test_urllib2_localnet.TestUrlopen) ... Exception happened during processing of request from ('127.0.0.1', 46051)
Traceback (most recent call last):
File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 281, in
_handle_request_noblock
self.process_request(request, client_address)
File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 308, in
process_request
self.close_request(request)
File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 448, in
close_request
request.shutdown(socket.SHUT_WR)
File "/home/rdmurray/python/trunk/Lib/socket.py", line 219, in meth
return getattr(self._sock,name)(*args)
error: [Errno 107] Transport endpoint is not connected
----------------------------------------
Exception in thread Thread-12:
Traceback (most recent call last):
File "/home/rdmurray/python/trunk/Lib/threading.py", line 524, in
__bootstrap_inner
self.run()
File "/home/rdmurray/python/trunk/Lib/test/test_urllib2_localnet.py",
line 65, in run
self.httpd.handle_request()
File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 266, in
handle_request
self._handle_request_noblock()
File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 284, in
_handle_request_noblock
self.close_request(request)
File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 448, in
close_request
request.shutdown(socket.SHUT_WR)
File "/home/rdmurray/python/trunk/Lib/socket.py", line 219, in meth
return getattr(self._sock,name)(*args)
error: [Errno 107] Transport endpoint is not connected |
Clearly some platforms automatically set the shutdown state, and we need |
Commited revision 73819 |
Test passes consistently now on trunk in Gentoo. |
meged to py3k in revision 73845 |
NB: this issue was caused by the bpo-6267 patch. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: