Yep, I can still reproduce it running make check:
gwenhwyvar:~/src/dulwich% make check python setup.py build running build running build_py copying dulwich/client.py -> build/lib.linux-x86_64-2.7/dulwich copying dulwich/tests/test_client.py -> build/lib.linux-x86_64-2.7/dulwich/tests running build_ext running build_scripts python setup.py build_ext -i running build_ext copying build/lib.linux-x86_64-2.7/dulwich/_objects.so -> dulwich copying build/lib.linux-x86_64-2.7/dulwich/_pack.so -> dulwich copying build/lib.linux-x86_64-2.7/dulwich/_diff_tree.so -> dulwich PYTHONPATH=.: python -m unittest dulwich.tests.test_suite ....................................................................................................................................................s.........................................................................................................................................................................................................................................................s............................s.........................................................................................................................................................................................................................................s.....................................E........................s........ ====================================================================== ERROR: test_send_remove_branch (dulwich.tests.compat.test_client.DulwichTCPClientTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "dulwich/tests/compat/test_client.py", line 216, in test_send_remove_branch c.send_pack(self._build_path('/dest'), lambda _: sendrefs, gen_pack) File "dulwich/client.py", line 461, in send_pack progress) File "dulwich/client.py", line 326, in _handle_receive_pack_tail self._read_side_band64k_data(proto, channel_callbacks) File "dulwich/client.py", line 268, in _read_side_band64k_data for pkt in proto.read_pkt_seq(): File "dulwich/protocol.py", line 147, in read_pkt_seq pkt = self.read_pkt_line() File "dulwich/protocol.py", line 113, in read_pkt_line raise GitProtocolError(e) GitProtocolError: [Errno 104] Connection reset by peer
---------------------------------------------------------------------- Ran 733 tests in 27.058s
FAILED (errors=1, skipped=5) make: *** [check] Error 1
This is with just your first patch applied.
Note that this happens in the compat tests.
Yep, I can still reproduce it running make check:
gwenhwyvar: ~/src/dulwich% make check linux-x86_ 64-2.7/ dulwich tests/test_ client. py -> build/lib. linux-x86_ 64-2.7/ dulwich/ tests linux-x86_ 64-2.7/ dulwich/ _objects. so -> dulwich linux-x86_ 64-2.7/ dulwich/ _pack.so -> dulwich linux-x86_ 64-2.7/ dulwich/ _diff_tree. so -> dulwich tests.test_ suite ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .s..... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ......s. ....... ....... ....... ......s. ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .s..... ....... ....... ....... ....... ....E.. ....... ....... ....... .s..... ... ======= ======= ======= ======= ======= ======= ======= ======= ======= remove_ branch (dulwich. tests.compat. test_client. DulwichTCPClien tTest) ------- ------- ------- ------- ------- ------- ------- ------- ------- tests/compat/ test_client. py", line 216, in test_send_ remove_ branch pack(self. _build_ path('/ dest'), lambda _: sendrefs, gen_pack) client. py", line 461, in send_pack client. py", line 326, in _handle_ receive_ pack_tail _read_side_ band64k_ data(proto, channel_callbacks) client. py", line 268, in _read_side_ band64k_ data pkt_seq( ): protocol. py", line 147, in read_pkt_seq pkt_line( ) protocol. py", line 113, in read_pkt_line
python setup.py build
running build
running build_py
copying dulwich/client.py -> build/lib.
copying dulwich/
running build_ext
running build_scripts
python setup.py build_ext -i
running build_ext
copying build/lib.
copying build/lib.
copying build/lib.
PYTHONPATH=.: python -m unittest dulwich.
.......
=======
ERROR: test_send_
-------
Traceback (most recent call last):
File "dulwich/
c.send_
File "dulwich/
progress)
File "dulwich/
self.
File "dulwich/
for pkt in proto.read_
File "dulwich/
pkt = self.read_
File "dulwich/
raise GitProtocolError(e)
GitProtocolError: [Errno 104] Connection reset by peer
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 733 tests in 27.058s
FAILED (errors=1, skipped=5)
make: *** [check] Error 1
This is with just your first patch applied.
Note that this happens in the compat tests.