Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Slow LWP?

by vaevictus (Pilgrim)
on Apr 17, 2009 at 13:59 UTC ( [id://758236]=note: print w/replies, xml ) Need Help??


in reply to Re: Slow LWP?
in thread Slow LWP?

Slick little insertion therein. ++
#!/usr/bin/perl -w use IO::Socket; package IO::Socket::INET; sub sysread { my $self = shift; select(undef,undef,undef,0.1); $self->SUPER::sysread(@_); } sub syswrite { my $self = shift; select(undef,undef,undef,0.1); $self->SUPER::syswrite(@_); } package main; # Your LWP code here... use LWP; use LWP::Debug '+'; print LWP::UserAgent->new->request(HTTP::Request->new(GET => "http://www.perl.com"))->as_string;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (None)
    As of 2024-04-25 01:05 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found