jmonty77 Posted November 25, 2022 Share Posted November 25, 2022 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 25, 2022 Share Posted November 25, 2022 Hello, What type of application? Quote Link to comment Share on other sites More sharing options...
jmonty77 Posted November 25, 2022 Author Share Posted November 25, 2022 ISAPI Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 25, 2022 Share Posted November 25, 2022 In an ISAPI module, the maximum number of connections, requests are configured in the web server which can be IIS, Apache or any other 3rd-party web server. Quote Link to comment Share on other sites More sharing options...
jmonty77 Posted November 25, 2022 Author Share Posted November 25, 2022 But maxrequests is actuating in IIS ISAPI, because if I set maxrequest=1 and I start a session, 401 is received in /HandleEvent Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 25, 2022 Administrators Share Posted November 25, 2022 It may only happen if the requests wait in queue for a long time. What is your MaxRequests value? Does your requests take a long time to process? That said, I am checking the issue. Quote Link to comment Share on other sites More sharing options...
jmonty77 Posted November 26, 2022 Author Share Posted November 26, 2022 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 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 26, 2022 Administrators Share Posted November 26, 2022 Issue confirmed and fixed. 1 Quote Link to comment Share on other sites More sharing options...
jmonty77 Posted November 30, 2022 Author Share Posted November 30, 2022 Thank you! When is it expected to be available a new version? I'm waiting it to renew my subscription. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.