Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2017-04-26 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (466 votes). Check out past polls.