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

Undertow worker threads stuck on ServletOutputStreamImpl.writeBlocking()

XMLWordPrintable

      We've observed hanging threads inĀ ServletOutputStreamImpl.writeBlocking() method.

      After research it was discovered that issue was introduced by UNDERTOW-2425.

      Those changes do not consider that SSLConduit.doWrap() method consumes buffer but bypass 'sent bytes' counter if a TLS re-handshake occurs.

      So 'totalWritten' will never reach 'bytesToWrite' in ServletOutputStreamImpl.writeBlocking().

        1. thread-dump.txt
          38 kB
        2. Picture4.png
          Picture4.png
          146 kB
        3. Picture3.png
          Picture3.png
          86 kB
        4. Picture2.png
          Picture2.png
          81 kB
        5. Picture1.png
          Picture1.png
          542 kB

              flaviarnn Flavia Rainone
              altomch Oleksandr Tomchakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: