bt.test_bundle.TestReadMergeableFromUrl.test_smart_server_connection_reset fails on windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
John A Meinel |
Bug Description
Test is hoping to get a nice wrapped bzrlib.
Traceback (most recent call last):
File ".\bzrlib\
self.
File ".\bzrlib\
callableObj
File ".\bzrlib\
_do_directive)
File ".\bzrlib\
redirected_
File ".\bzrlib\
return action(transport)
File ".\bzrlib\
return StringIO(
File ".\bzrlib\
resp, response_handler = self._client.
File ".\bzrlib\
return self._call_
File ".\bzrlib\
response_tuple = response_
File ".\bzrlib\
self.
File ".\bzrlib\
self.
File ".\bzrlib\
bytes = self._medium_
File ".\bzrlib\
return self._read_
File ".\bzrlib\
return self._medium.
File ".\bzrlib\
return self._read_
File ".\bzrlib\
return osutils.
File ".\bzrlib\
bytes = sock.recv(
error: (10053, 'Software caused connection abort')
Fails locally in a similar manner even at r3707 when it was first merged.
Failure report on babune:
<http://
There is also a similar random failure on babune that may or may not be fixable at the same time:
<http://
Related branches
- Vincent Ladeuil: Approve
-
Diff: 68 lines (+18/-3)4 files modifiedbzrlib/osutils.py (+9/-1)
bzrlib/transport/http/_urllib2_wrappers.py (+3/-1)
bzrlib/version_info_formats/format_python.py (+1/-1)
doc/en/release-notes/bzr-2.3.txt (+5/-0)
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in bzr: | |
status: | Confirmed → Fix Released |
milestone: | none → 2.3b5 |
assignee: | nobody → John A Meinel (jameinel) |
Am uncertain as to whether this is a problem with the tests or with the code. Currently *CONNRESET is being caught in osutils. read_bytes_ from_socket and translated to EOF, but *CONNABORTED is not.
This gist from the documentation seems to be that 'reset' is for a remote disconnect, and 'aborted' as a local disconnect: www.sockets. com/err_ lst1.htm# WSAECONNRESET www.sockets. com/err_ lst1.htm# WSAECONNABORTED msdn.microsoft. com/library/ ms740668# winsock. wsaeconnaborted _2
http://
http://
http://
As the _DisconnectingT CPServer class used in the test is being run in the same process in a separate thread, winsock using 'aborted' seems reasonable, but not sure if it should be treated the same as 'reset' in the general case.