SSH connections should be explicitly closed, not rely on gc
Bug #803187 reported by
Martin Pool
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
follow on from https:/
At the moment network connections are opened on demand, shared between related objects through possible_
Generally speaking we don't want to close things through gc; also long-lived gui or server applications may want to explicitly control connection lifetime.
One way this could be done is by having a specific connection context object; there could be a default one in the library state.
This would be especially useful for SSH which currently relies on gc to do an explicit close operation (see bug 791612).
summary: |
- need api to explicitly close connections + need api to explicitly close connections (especially ssh) |
description: | updated |
tags: | added: api ssh |
tags: | added: check-for-breezy |
To post a comment you must log in.
What's wrong with transport. disconnect( ) ?