Ok, I have an Apache DSO module written using Delphi and Intraweb.
Every once in a while, the application was running out of connections
and was reporting the following error:
Internal Server Error 500
Exception: EWebBrokerException
Message: Maximum number of concurrent connections exceeded. Please try again later.
Unfortunately, the information that I could find on the web wasn't very helpful -
setting Application.MaxConnections to some value isn't really an option
when there's no Application object defined...
However, the following solution works well enough for me -
add this code to you project's .dpr file (set MaxConnections to whatever suits you):
uses
...
WebReq;
...
begin
if WebReq.WebRequestHandler <> NIL then
WebReq.WebRequestHandler.MaxConnections := 255;
...
end.
HTH
Top
|