Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-473

ClientResponseFailure doesn't garbase collect connections fast enough

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1-beta-1
    • 2.0.1.GA
    • None
    • None

      Hi!

      I'm getting the following error using the client framework version 2.0.1.GA:

      java.lang.RuntimeException:
      org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout
      waiting
      for connection

      at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:96)

      at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:72)

      I'm using org.jboss.resteasy.client.core.executors.ApacheHttpClientExecutor.
      I noted that this error occurs after 30 404 responses returned by the
      server, and 30 is exactly the maxConnectionsPerHost configured in my
      org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.

      I think the client is not properly closing the connections when an
      error is returned by the server.

      I tested with version 1.2.1 and the error doesn't occur.

              patriot1burke@gmail.com Bill Burke (Inactive)
              patriot1burke@gmail.com Bill Burke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: