Next privilege 125 Rep.
Next badge 0/1
0 people reached
- 0 posts edited
- 0 helpful flags
- 4 votes cast
On a LAMP stack, how to limit the number of concurrent connections and serve a static page for those who are beyond that limit?
I don't how you'd get apache to serve the 503 once the backlog is full. This is a TCP backlog, which is opaque - as far as I know, applications can't even get its size, but can only dequeue from it by accepting connections.
Apache HTTPd : How is possible to display “Too many connections”
@adaptr Have you tested this? This is not the behavior I'm seeing on apache 2.2. I've gotten 10 clients to connect with MaxClients=5 and ListenBackLog=100. I have a cgi on the other end that records the start time and waits 1 second. Five of the clients showed a start time one second later than the other 5 clients, but none were rejected.