Comment 10 for bug 1063087

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

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.