bzr connects multiple times while pushing
Bug #75721 reported by
Martin Pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Critical
|
John A Meinel |
Bug Description
I'm not sure why this is happening, but I was using 'bzr push
bzr+ssh://' to push something today, and I found that bzr actually maed
4 connections to the remote server. (This server prints a message when you connect, and I see 4 of them).
It seems to just be a problem with bzr+ssh:// because if I use bzr push sftp:// to the same machine, it only connects one time.
Now, I realize that we have an "evil" connection cache in the sftp
implementation, but connecting 4 times to push seems a little bit bad. I
don't really want to implement a connection cache, but that is probably
the easiest way to fix this. Any thoughts?
John
=:->
Related branches
description: | updated |
Changed in bzr: | |
importance: | Undecided → Medium |
Changed in bzr: | |
importance: | High → Critical |
To post a comment you must log in.
Looking closer, I believe this is because bzr+ssh does not pass a reference to self when doing a clone(), which means it does not save the Medium, and has to reconnect.