Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: 500 Can't connect to localhost:80 (connect: timeout) |
|
Author |
|
myrmidia
Joined: 25 Feb 2009 Posts: 1
|
Posted: Wed 25 Feb '09 11:02 Post subject: 500 Can't connect to localhost:80 (connect: timeout) |
|
|
Hi everybody,
I just installed the latest release of the Apache software on my desktop (XP SP2) and I wrote a little program (stress test) with Perl.
In fact, this programm call in an infinite loop the 'stress' function...
Regulary, I have the error 500 with this message :
500 Can't connect to localhost:80 (connect: timeout)
This is the content of the function :
Code: | sub stress {
my $ua = LWP::UserAgent->new;
$ua->timeout(5);
my $response = $ua->get('http://localhost');
if (!$response->is_success) {
print Dumper($response->status_line);
}
} |
I'm very surprised because I thought that the Apache Web Server was able to take lof of incoming connections per second.
Is there a way to configure with the http.conf file or recompilation from source to avoid this error ??? |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 25 Feb '09 18:19 Post subject: |
|
|
With only a 5 second sleep between loops I wonder if the WinXP 20 connection limit is being hit. |
|
Back to top |
|
|
|
|
|
|