2
        var owinHttpListener = (OwinHttpListener)appBuilder.Properties["Microsoft.Owin.Host.HttpListener.OwinHttpListener"];

        int maxAccepts, maxRequests;
        maxAccepts = Int32.MaxValue; //Default = 5 * ProcCount
        maxRequests = Int32.MaxValue; //Default = Int32.MaxValue;
        owinHttpListener.SetRequestProcessingLimits(maxAccepts, maxRequests);

The OwinHttpListener.SetRequestProcessingLimits from above example code accepts two parameters according to MSDN.

  • maxAccepts The maximum number of pending request receives.
  • maxRequests The maximum number of active requests being processed.

What I don't understand is the maxAccepts parameter. Accept here means TCP accept? HTTP head received?

Can someone help to clarify what does maxAccepts parameter mean?

Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
  • This controls how many requests the server attempts to process concurrently I guess. – Chidambaram Nov 20 '17 at 11:08
  • I assume there is some counter wihtin OWIN implementation, and if the counter exceeds the limitation, no more request is accepted. What I want to understand is: when this counter is increased / decreased – Mr.Wang from Next Door Nov 21 '17 at 01:31

0 Answers0