Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue6381] test_urllib2_localnet sporadic failures closing socket

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jun 29, 2009, 6:40 PM

Post #1 of 5 (95 views)
Permalink
[issue6381] test_urllib2_localnet sporadic failures closing socket

New submission from R. David Murray <rdmurray[at]bitdance.com>:

Gentoo linux, r73699, I'm seeing sporadic failures in
test_urllib2_localnet in the following two tests:

test_sending_headers
test_proxy_with_no_password_raises_httperror

It happens about once every other run in one or the other of those. I
don't see any problems on 2.6-maint or py3k.

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

----------
components: Tests
messages: 89896
nosy: r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: test_urllib2_localnet sporadic failures closing socket
type: security
versions: Python 2.7

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 3, 2009, 4:00 PM

Post #2 of 5 (65 views)
Permalink
[issue6381] test_urllib2_localnet sporadic failures closing socket [In reply to]

Kristján Valur Jónsson <kristjan[at]ccpgames.com> added the comment:

Clearly some platforms automatically set the shutdown state, and we need
to catch that error.

----------
nosy: +krisvale

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 3, 2009, 4:07 PM

Post #3 of 5 (66 views)
Permalink
[issue6381] test_urllib2_localnet sporadic failures closing socket [In reply to]

Kristján Valur Jónsson <kristjan[at]ccpgames.com> added the comment:

Commited revision 73819
Please test on gentoo

----------

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 3, 2009, 9:57 PM

Post #4 of 5 (65 views)
Permalink
[issue6381] test_urllib2_localnet sporadic failures closing socket [In reply to]

R. David Murray <rdmurray[at]bitdance.com> added the comment:

Test passes consistently now on trunk in Gentoo.

----------

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2009, 8:18 AM

Post #5 of 5 (57 views)
Permalink
[issue6381] test_urllib2_localnet sporadic failures closing socket [In reply to]

Kristján Valur Jónsson <kristjan[at]ccpgames.com> added the comment:

meged to py3k in revision 73845

----------

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.