Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Using Persistent Connections with SOAP::Lite HTTP clients

by tomhukins (Curate)
on Sep 21, 2010 at 19:13 UTC ( #861141=note: print w/ replies, xml ) Need Help??


in reply to Re: Using Persistent Connections with SOAP::Lite HTTP clients
in thread Using Persistent Connections with SOAP::Lite HTTP clients

I agree with everything you write, but I suspect you have misunderstood what my code does: it sets a request header in order to allow the server to leave the connection open after sending its response.

The snippet I posted sets Connection: KeepAlive on the request, letting the server know that the client can deal with KeepAlive responses.

Although HTTP 1.1 introduced this feature, clients and servers commonly support it as an extension when speaking HTTP 1.0: if the header does not exist, servers will close the TCP connection after each request as per standard HTTP 1.0.


Comment on Re^2: Using Persistent Connections with SOAP::Lite HTTP clients
Download Code
Re^3: Using Persistent Connections with SOAP::Lite HTTP clients
by ddn123456 (Pilgrim) on Dec 16, 2010 at 12:52 UTC
    Hi,

    Thanks for the clarification.

    Reading it now afterwards I didn't express myself clearly enough perhaps but I did understand your code snippet perfectly.

    It does remain a nice snippet :-)

    Greetings.
    ddn123456

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://861141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-12-25 17:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (161 votes), past polls