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. Picture1.png
          542 kB
          Oleksandr Tomchakov
        2. Picture2.png
          81 kB
          Oleksandr Tomchakov
        3. Picture3.png
          86 kB
          Oleksandr Tomchakov
        4. Picture4.png
          146 kB
          Oleksandr Tomchakov
        5. thread-dump.txt
          38 kB
          Oleksandr Tomchakov

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

                Created:
                Updated: