develooper Front page | perl.poe | Postings from April 2012

POE::Component::Client::HTTP and respond only after timeout on some sites

From:
Gabor Szabo
Date:
April 3, 2012 23:47
Subject:
POE::Component::Client::HTTP and respond only after timeout on some sites
Message ID:
CABe4FJAMqGGyuW8chHbQXxXiG+ec3pwft2-=WdUrENu7G2D6xA@mail.gmail.com
Now that I know the LWP::UserAgent::POE is currently not working I
tried the POE::Component::Client::HTTP
and while many things are unclear to me here is one I can easily show.


I downloaded the example that comes with the module and tried it:
https://metacpan.org/source/RCAPUTO/POE-Component-Client-HTTP-0.945/examples/pcchget.perl

perl pcchget.perl http://poe.perl.org   within 1 sec
perl pcchget.perl http://perl.org   within 1 sec telling me to
redirect to http://www.perl.org/

perl pcchget.perl http://www.perl.org   I only see the response after
20 sec but then
it prints out the content of the web site.
So if I understand it reaches the timeout but then returns with the
real content?

The same with http://dev.perl.org

but http://debugger.perl.org/   answers within a second too.


time wget http://www.perl.org/
gives me 1 second.


Could someone, please help me understand this?

Gabor



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About