Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1170

UndertowClient should support connection pool

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Optional Optional
    • None
    • 1.4.18.Final
    • Core
    • None

      When using UndertowClient to call another service from the current service handleRequest, the following error occurs under very light load.

      java.io.IOException: UT001033: Invalid connection state
      at io.undertow.client.http.HttpClientConnection.sendRequest(HttpClientConnection.java:336)

      This looks like a bug in the first place, however, it might be that the connection cannot handle too many concurrent requests given further investigation. As UndertowClient supports both HTTP 1.1 and 2.0, it would be necessary to support connection pool internally. In most of the cases, HTTP 2.0 won't need connection pool unless under heavy load but HTTP 1.1 needs a connection pool in case the target server doesn't support HTTP 2.0 or developers choose to use HTTP 1.1 in the client side code.

              Unassigned Unassigned
              stevehu_jira Steve Hu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: