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

HttpClientConnection.sendRequest on a closed connection should result in a ClosedChannelException

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.4.0.Final
    • None
    • None
    • None

      In some race scenarios, such as the one tested by UNDERTOW-2212 PR, depending on the order the threads close the connection, we could end up getting a ClosedChannelException at the resulting exchange, or get an IOException with "Invalid connection state" at the callback as an error.

      Maybe it is a good idea to use the same ClosedChannelException for both scenarios.

            mjusko@redhat.com Marek Jusko
            flaviarnn Flavia Rainone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: