Package: libsvn-perl
Version: 1.5.1dfsg1-2
Severity: wishlist

I am looking for ways to optimize svn-buildpackage, and one way I
thought of is to see if it's possible to reuse the ssh connection.

I can't tell if SVN::Client supports reusing connections, but if it
does (and I hope it does), it isn't working. If it doesn't, then it's
leaving open ssh connections for no reason. The number of open
connections to the SVN server after each command increases. I would
expect the one connection to stay open, or it to be closed and a new
one opened.

Summary of output:
output.before: nothing
output.one: 1 ESTABLISHED
output.two: 2 ESTABLISHED
output.three: 3 ESTABLISHED
output.after: 3 FIN_WAIT1 # with the version in experimental, 1.6.1dfsg-1, 
these are still ESTABLISHED...

Test script:
#!/usr/bin/perl

use SVN::Client;
my $s = SVN::Client->new();

sub runtest {
  $s->cat(\*STDOUT, 
"svn+ssh://alioth.debian.org/svn/collab-maint/deb-maint/svn-buildpackage/trunk/debian/compat",
 "HEAD");
}

sub netstat {
  system("netstat | grep alioth > outp...@_");
}

netstat "before";
runtest;
netstat "one";
runtest;
netstat "two";
runtest;
netstat "three";
$s = undef;
netstat "after";

-- 
_________________________
Ryan Niebur
[email protected]

Attachment: signature.asc
Description: Digital signature

Reply via email to