Can anyone confirm this problem before the webpage starts to respond again.
On windows it fails after 22 seconds.On linux it fails after 189 seconds! Is 
this a linux problem or a perl on linux problem?Can something be done to avoid 
this long timeout?

On windows:
require LWP::UserAgent;my $ua = LWP::UserAgent->new;$ua->timeout(10);my 
$starttime = time;my $response = 
$ua->get('https://enet.kbcat.com/clients/JVTest/default.aspx');
if ($response->is_success) {   print "request sucess\n";}else {   print  
$response->status_line . "\n";}my $endtime = time;print "time used: ".($endtime 
- $starttime)." seconds\n";
^D500 Connect failed: connect: Unknown error; Unknown errortime used: 22 seconds
On linux (CentOS release 5.3 (Final)):
require LWP::UserAgent;my $ua = LWP::UserAgent->new;$ua->timeout(10);my 
$starttime = time;my $response = 
$ua->get('https://enet.kbcat.com/clients/JVTest/default.aspx'); if 
($response->is_success) {   print "request sucess\n";}else {   print  
$response->status_line . "\n";}my $endtime = time;print "time used: ".($endtime 
- $starttime)." seconds\n";

500 Connect failed: connect: Connection timed out; Connection timed outtime 
used: 189 seconds                                     
_________________________________________________________________
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010

Reply via email to