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

AbstractFramedChannel.flushSenders could throw NPE when polling newFrames

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.29.Final
    • None
    • None
    • None

    Description

      The newFrames are polled using the same pattern described in UNDERTOW-1620:

                  while (!newFrames.isEmpty()) {
                      S frame = newFrames.poll();
                      frame.preWrite();
                      ...

      This could result in a NPE if run in parallel with markWritesBroken, that invokes newFrames.clear().

      Attachments

        Issue Links

          Activity

            People

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: