Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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.

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 wandering the Monastery: (4)
As of 2016-06-30 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (403 votes). Check out past polls.