Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

HTTP persistent connection solutions

by skazat (Chaplain)
on Oct 31, 2011 at 21:47 UTC ( [id://934972]=perlquestion: print w/replies, xml ) Need Help??

skazat has asked for the wisdom of the Perl Monks concerning the following question:

A strangely easy question today. I'm looking for a HTTP persistent connection solution (hopefully fairly high level) in Perl. My Google and search.cpan.org - fu has failed me, only finding that LWP currently (perhaps?) may not support this. Although I may be mistaken. As is not at all unusual. All the related questions on the 'monks are woefully out of date.

Looking to use HTTP keep-alive for some Amazon AWS stuff.

-skazat

Replies are listed 'Best First'.
Re: HTTP persistent connection solutions
by Anonymous Monk on Oct 31, 2011 at 23:01 UTC
Re: HTTP persistent connection solutions
by Sewi (Friar) on Nov 01, 2011 at 09:21 UTC

    HTTP is a request-based protocol, there are no "persistant connections" like they are on SQL, SMTP or FTP (where one connection may handle more than one action).

    The HTTP Keep-Alive is some kind of persistant connection, but it's limited in various ways.

  • A client may request Keep-Alive, but neither a intermediate proxy nor the server has to respect this request
  • Servers usually close Keep-Alive connections very quickly (few seconds), because they're blocking valueable server slots.
  • LWP's Keep-Alive should do the job, but there are other participants who might not support or like it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://934972]
Approved by keszler
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found