[Xitami] Server Being Flooded
Ewen McNeill
xitami@lists.xitami.org
Sun, 07 Apr 2002 19:41:10 +1200
In message <002801c1d849$75fe5920$0200a8c0@geh>, "Gregory Hart" writes:
> My server is being flooded with cgi requests. When I have about 60
>active connections, my computer crashes because Xitami is not able to
>completely close all the perl windows. How can I get Xitami to send a 413
>(This server cannot handle your request) or a 502 (This server is currently
>overloaded - please try again later) when it has more than 5 active
>connections? Thanks.
Xitami will do this automatically when the CGIs take "too long" to run;
but there's no way to configure it so that, eg, 5 simultaneous
connections will cause the "try again later" type message.
You might want to reduce the [CGI] Timeout value in this situation, so
that more of the CGIs are cancelled quickly and a server overloaded
message sent. However it's not a perfect fix because all the CGIs will
still be launched.
You might also want to consider something like LRWP instead of CGIs, as
it's able to answer requests quicker (much much less startup overhead).
Ewen
--
Ewen McNeill, Technical Consultant, iMatix Corporation www.imatix.com