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]

Reply via email to