disconnecting from the server
John Arbash Meinel
john at arbash-meinel.com
Wed Sep 27 20:13:29 BST 2006
Lukáš Lalinský wrote:
> I start a server, then branch from a bzr:// URL and when the branching is done
> the server raises an exception:
>
...
> 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áš
I think the problem is that we handle a different error. In the code we do:
try:
self.accept_and_serve()
except socket_timeout:
# just check if we're asked to stop
pass
except socket_error, e:
trace.warning("client disconnected: %s", e)
pass
I wonder what kind of exception is being raised that we aren't catching.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060927/f28d7d4c/attachment.pgp
More information about the bazaar
mailing list