Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: IO::Socket::INET slower than the LWP::UserAgent how so many?

by sfink (Deacon)
on Oct 20, 2007 at 16:45 UTC ( #646191=note: print w/ replies, xml ) Need Help??


in reply to IO::Socket::INET slower than the LWP::UserAgent how so many?

You told it to keep the connection alive, and then tried to read until EOF (when the connection closes). That's not a good combination.

You can either do Connection: close instead of keeping it alive, or you can do what LWP is doing and parse out the Content-Length header and only read that many bytes.


Comment on Re: IO::Socket::INET slower than the LWP::UserAgent how so many?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-04-19 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls