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

       

        1. image-2022-10-25-15-10-39-303.png
          45 kB
          GUNNAR LINDROTH
        2. image-2022-10-25-15-14-51-333.png
          8 kB
          GUNNAR LINDROTH
        3. image-2022-10-25-15-17-43-544.png
          11 kB
          GUNNAR LINDROTH
        4. image-2022-10-26-13-40-49-627.png
          55 kB
          GUNNAR LINDROTH
        5. image-2022-10-27-18-53-06-367.png
          31 kB
          GUNNAR LINDROTH
        6. image-2022-10-27-19-00-16-597.png
          120 kB
          GUNNAR LINDROTH
        7. image-2022-10-28-12-46-03-821.png
          26 kB
          GUNNAR LINDROTH

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

              Created:
              Updated:
              Resolved: