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

IOException thrown when trying to close already closed stream

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.1.Final, 2.2.22.Final
    • 2.3.0.Final
    • None
    • None

      Hello,

      When running performance test towards Undertow (using "h2load" as a client) I have noticed that all exchanges ends with an exception:

       

      If I understand correctly the problem is caused by the method  HttpServerExchange.DefaultBlockingHttpExchange.getInputStream() which tries to create a new UndertowInputStream even for an exchange which has already completed:

       

       

      I can workaround the problem by adding null checks in the HttpServerExchange.DefaultBlockingHttpExchange.close() method:

       

      Maybe there is a better way to do this?

      Thanks, Gunnar

       

              rhn-support-rmartinc Ricardo Martin Camarero
              gunnarlindroth GUNNAR LINDROTH (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: