Jump to content

serverlimits.maxrequest


jmonty77

Recommended Posts

Hello,

When serverlimits.maxrequests is reached, why I get 401 response in browser?

Documentation says "it will keep the incoming requests waiting until the number of pending requests falls below the maximum value"

I expect that /handleevent request would be queued until prior requests are processed.

Thanks in advance

 

Link to comment
Share on other sites

Hello, I've realised that this happens when there's httpcommand event in server:

procedure TUniServerModule.UniGUIServerModuleHTTPCommand(
  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo;
  var Handled: Boolean);
begin
 //
end;

The code can be empty. If I remove this event, error 401 is gone.

I tested it with a new project and only putting a timer in mainform. maxrequest=1

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...