Caves Travel Diving Graphics Mizar Texts Cuisine Lemkov Contact Map RSS Polski
Trybiks' Dive Texts Intraweb Intraweb and MaxConnections YAC Software
  Back

List

Charsets

Charts

DBExpress

HTML

Intraweb

PHP

Programming

Software

Testing

VCL

Intraweb and MaxConnections
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

Comments
Alas!
No comments yet...

Top

Add a comment (fields with an asterisk are required)
Name / nick *
Mail (will remain hidden) *
Your website
Comment (no tags) *
Enter the text displayed below *
 

Top

Tags

Intraweb


Related pages

Intraweb as an Apache DSO module

"Device not supported" in Intraweb

SessionTimeout in Intraweb

Using TChart with Intraweb

</form> ... <form>