Include connection keep-alive
authorSam Hartman <hartmans@debian.org>
Wed, 3 Sep 2014 20:35:30 +0000 (16:35 -0400)
committerSam Hartman <hartmans@debian.org>
Wed, 3 Sep 2014 20:35:43 +0000 (16:35 -0400)
test/gssweb_client.pl

index 1db407f..48dab76 100755 (executable)
@@ -2,6 +2,7 @@
 
 use strict;
 use WWW::Mechanize;
+    use LWP::ConnCache;
 use GSSAPI;
 use GSSAPI::OID;
 use MIME::Base64;
@@ -49,6 +50,7 @@ sub token_body($$) {
 
 my ($url, $gssname) = @ARGV;
 my $www = WWW::Mechanize->new('autocheck' => 0);
+$www->conn_cache(LWP::ConnCache->new);
 my $done = 0;
 my $response_token = undef;
    while (!$done) {