Rev 6196: Flush before we close _out. in http://bazaar.launchpad.net/~jameinel/bzr/2.5-soft-hangup-795025
John Arbash Meinel
john at arbash-meinel.com
Fri Sep 23 20:51:28 UTC 2011
At http://bazaar.launchpad.net/~jameinel/bzr/2.5-soft-hangup-795025
------------------------------------------------------------
revno: 6196
revision-id: john at arbash-meinel.com-20110923205116-jrzv1p3qzfjafieh
parent: john at arbash-meinel.com-20110923202451-5hrc3s8zmmh9tnoi
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.5-soft-hangup-795025
timestamp: Fri 2011-09-23 22:51:16 +0200
message:
Flush before we close _out.
-------------- next part --------------
=== modified file 'bzrlib/smart/medium.py'
--- a/bzrlib/smart/medium.py 2011-09-23 20:24:51 +0000
+++ b/bzrlib/smart/medium.py 2011-09-23 20:51:16 +0000
@@ -233,8 +233,6 @@
if server_protocol is None:
# We could 'continue' only to notice that self.finished is
# True...
- trace.mutter('Stopped while waiting for request: %s\n'
- % (self,))
break
self._serve_one_request(server_protocol)
except errors.ConnectionTimeout, e:
@@ -474,6 +472,7 @@
def _disconnect_client(self):
self._in.close()
+ self._out.flush()
self._out.close()
def _wait_for_bytes_with_timeout(self, timeout_seconds):
More information about the bazaar-commits
mailing list