develooper Front page | perl.libwww | Postings from March 2001

Re: LWPng Keep-Alive connection

Thread Previous
From:
Gisle Aas
Date:
March 8, 2001 12:19
Subject:
Re: LWPng Keep-Alive connection
Message ID:
lr1ys89fpy.fsf@caliper.ActiveState.com
Sten Folkerman <sten@init.se> writes:

> I want my LWPng (alpha-0.24) program to use 'Connection: Keep-Alive'
> instead of 'Connection: close'. In LWP/Conn/HTTP.pm, setting
> $cnf{ReqLimit} to a big number seems to do the trick. But how do I
> achieve that in my main routine, where I have access only to the UA
> and my Request object?

Try something like:

$ua->uri_attr_update("SCHEME", "http:")->{conn_param}(ReqLimit} = 999;

--Gisle

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About