On 26.09.2015 20:48, Ryan Rutledge wrote:
> TLDR: TSVN over svn+ssh protocol uses multiple connections in
> succession, opening and closing each one in various steps. A simply repo
> browse operation typically uses about 6 discrete sessions, rather than
> establishing a single session and using that. This causes a long delay
> for nearly any operation in TSVN when it takes a second to authenticate
> the SSH key, which happens multiple times for every operation. Can TSVN
> be made to reuse a single session (within some short time frame) instead?
>
> FULL: I’ve recently migrated from CloudForge to our own server that uses
> SSH key authentication. Connecting to CloudForge with https always had a
> couple second delay to repo browse, etc., but now that delay is several
> seconds long over svn+ssh on our new server. Digging into
> /var/log/auth.log, I see that the SSH key is being validated, then
> closed, then revalidated, then closed, and so on about 6 different times
> for just a repo browse operation in TSVN. This makes Pageant or a
> similar key caching tool all but mandatory, otherwise you are prompted
> for your private key passphrase 6 times, once for each connection
> (confirmed after closing Pageant – I thought it wasn’t working because
> it kept prompting my for the passphrase over and over, but then after
> the 6^th it worked). In essence repo connections are treated as a
> trivially cheap resource, which is surely true on the local file system
> or a LAN, but far from true for SSH key-based authentication. This is
> discussed briefly here:
> http://grokbase.com/t/subversion/users/106gs90x6y/multiple-ssh-connections
>
> I attempted to use the “ControlMaster” approach to cause the first
> session to be reused for a short time, but It appeared to have no effect
> (possibly due to my own error – it never seemed to create the
> ControlPath file at all). It seems like it should be possible to either
> reuse the connections internally in TSVN, or automate creating one
> tunnel to the host then directing SVN traffic to the tunnel opening on
> the client end (perhaps those are the same solution).
TSVN does not use ssh itself but fully relies on the svn library for
that. Which means you have to ask on the svn users list for help with this.
Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest interface to (Sub)version control
/_/ \_\ http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3139934
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-09-28 21:26:11 CEST