~bzr-pqm/bzr/bzr.dev

Ensure that all transports close their underlying connection.

* bzrlib/transport/sftp.py:
(SFTPTransport.disconnect): Close the sftp connection.

* bzrlib/transport/remote.py:
(RemoteTransport.disconnect): The medium can be None.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib.disconnect): Close the http connection.

* bzrlib/transport/http/_pycurl.py:
(PyCurlTransport.disconnect): Close the Curl object.

* bzrlib/transport/http/__init__.py:
(SmartClientHTTPMedium.disconnect): Disconnect the backing http
transport.

* bzrlib/transport/gio_transport.py:
(GioTransport.disconnect): Hmm, nothing obvious here.

* bzrlib/transport/ftp/__init__.py:
(FtpTransport.disconnect): Close the ftplib connection.

* bzrlib/transport/__init__.py:
(Transport.disconnect): A do-nothing implementation by default.
(ConnectedTransport.disconnect): A new required method.

* bzrlib/tests/test_smart_transport.py:
(TestSmartTCPServer.test_get_error_unexpected)
(SmartTCPTests.start_server): Revert to SmartServer waiting for a
better way to capture the connections.

* bzrlib/tests/per_transport.py:
(TransportTests.test_connection_sharing): 'None' is better than
'object()' for a dummy connection.

* bzrlib/tests/__init__.py:
(TestCase._check_leaked_threads): Don't fail at first leak or all
subsequent tests will fail too. A more elaborate scheme would be
to use threading.enumerate() but that's a big hammer with little
benefits as long as there exist "valid" leaks (like the smart
server).
(TestCaseWithMemoryTransport.setUp): Make sure we call
transport.disconnect() for all created transports.

Filename Latest Rev Last Changed Committer Comment Size
..
bash 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
debian 4665.6.1 15 years ago John Ferlito Add a debian init script for bzr --serve Diff
emacs 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
zsh 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
add-bzr-to-baz 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 223 bytes Diff Download File
File bzr_access 4183.7.1 15 years ago Sabin Iacob update FSF mailing address 7.6 KB Diff Download File
File bzr_ssh_path_limiter 3806.1.1 16 years ago Andrew Bennetts Add contrib/bzr_ssh_path_limiter. 550 bytes Diff Download File
convert_to_1.9.py 3823.3.2 16 years ago John Arbash Meinel Add a bit of help text when supplying --help. 5.1 KB Diff Download File
create_bzr_rollup.py 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 5.5 KB Diff Download File
newinventory.py 4183.7.1 15 years ago Sabin Iacob update FSF mailing address 4.3 KB Diff Download File
pwclient.full 4183.7.1 15 years ago Sabin Iacob update FSF mailing address 13 KB Diff Download File
pwk 1583.1.2 18 years ago Michael Ellerman Update contrib/pwk for -p1 diffs from bzr 897 bytes Diff Download File
upload-bzr.dev 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late 829 bytes Diff Download File