Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 lurking in the Monastery: (16)
As of 2015-07-31 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls