disconnecting from the server

Lukáš Lalinský lalinsky at gmail.com
Wed Sep 27 14:20:56 BST 2006


I start a server, then branch from a bzr:// URL and when the branching is done
the server raises an exception:

<bzrlib.transport.smart.SmartStreamServer object at 0x02223C90> terminating on
exception (10054, 'Connection reset by peer')
Exception in thread smart-server-child:
Traceback (most recent call last):
  File "C:\Python24\lib\threading.py", line 442, in __bootstrap
    self.run()
  File "C:\Python24\lib\threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "C:\Python24\Lib\site-packages\bzrlib\transport\smart.py", line 306, in serve
    while self._serve_one_request() != False:
  File "C:\Python24\Lib\site-packages\bzrlib\transport\smart.py", line 284, in
_serve_one_request
    req_args = self._recv_tuple()
  File "C:\Python24\Lib\site-packages\bzrlib\transport\smart.py", line 268, in
_recv_tuple
    return _recv_tuple(self._in)
  File "C:\Python24\Lib\site-packages\bzrlib\transport\smart.py", line 172, in
_recv_tuple
    req_line = from_file.readline()
  File "C:\Python24\lib\socket.py", line 340, in readline
    data = self._sock.recv(self._rbufsize)
error: (10054, 'Connection reset by peer')

It causes no problems and branching/pushing works fine next time again, but
shouldn't be the disconnecting handled somehow? Or is this a Windows-specific bug?

-Lukáš





More information about the bazaar mailing list