> On Jun 25, 2024, at 13:12, Eric Robinson <eric.robin...@psmnv.com> wrote:
> 
> I'm obviously not getting something. If I understand correctly, the purpose 
> of the acceptCount param is to allow tomcat to reject connections even after 
> the TCP stack has passed them to the java process. At that point, the request 
> has made it through the OS all the way to tomcat, so if tomcat rejects it, 
> then it should log a message... no?


No - Tomcat passes the acceptCount value to the TCP/IP stack of the OS as part 
of listener socket initialization. The accept queue is maintained entirely by 
the OS; Tomcat is not involved in the management thereof, other than taking 
requests off the accept queue with the listener thread for the <Connector>. If 
connection requests arrive at the NIC fast enough to fill up the accept queue, 
excess ones are simply rejected by the OS.

  - Chuck

Reply via email to