~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: John Arbash Meinel
  • Date: 2011-09-23 20:51:16 UTC
  • mto: This revision was merged to the branch mainline in revision 6170.
  • Revision ID: john@arbash-meinel.com-20110923205116-jrzv1p3qzfjafieh
Flush before we close _out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
                if server_protocol is None:
234
234
                    # We could 'continue' only to notice that self.finished is
235
235
                    # True...
236
 
                    trace.mutter('Stopped while waiting for request: %s\n'
237
 
                                 % (self,))
238
236
                    break
239
237
                self._serve_one_request(server_protocol)
240
238
        except errors.ConnectionTimeout, e:
474
472
 
475
473
    def _disconnect_client(self):
476
474
        self._in.close()
 
475
        self._out.flush()
477
476
        self._out.close()
478
477
 
479
478
    def _wait_for_bytes_with_timeout(self, timeout_seconds):