After a long discussion on the dev-list, it was decided that we wouldn't bother supporting the case maxProcessors="1". The reason is that it adds complexity to already complex code, just to handle a silly case. You'll need to try testing with at least maxProcessors="2".
To possibly save you having to do the testing, 'acceptCount' corresponds to the TCP parameter 'backlog'. Roughly, that is the number of requests that are allowed to queue up on the TCP stack waiting to be accepted. In general, this is one of the parameters that I don't recommend messing with unless you know what you are doing :). "Donie Kelly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all Just wondering how to use acceptCount in the Connector class. Default example here modified to show what I'm trying to test to understand how this works. <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8443" minProcessors="1" maxProcessors="1" enableLookups="true" acceptCount="2" debug="0" scheme="https" secure="true" useURIValidationHack="false" disableUploadTimeout="true"> <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" clientAuth="false" protocol="TLS" /> </Connector> I start Tomcat with this setup and see that it has only one object in it's connection pool as expected. I have a small servlet that just returns a number (incrementing) and has a forced pause to simulate work being done. 2 seconds wait. 1.. I send the request with Browser 1 to the servlet and it doesn't return yet. Should be asleep for 2 seconds 2.. I send the request with Browser 2 to the servlet and it does noting but looks like it's busy as expected as maxProcessors=1 above 3.. Browser 1 now returns with it's incrementing number 4.. Now I expect browser 2 to be assigned to the free connection in Tomcat's pool but nothing happens. ever. 5.. Browser 1 goes again and works after 2 seconds. Q: Why did browser 2 not get assigned the servlet that browser 1 freed up when it finished the request Q: Does the acceptCount does what I think it does? Thanks for any help in understanding how this works. Donie ------------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
