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

AbstractFramedStreamSourceChannel.lastFrame bypasses close

XMLWordPrintable

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

      AbstractFramedStreamSourceChannel.lastFrame sets 'state |= STATE_DONE | STATE_CLOSED;' prior to invoking close via 'IoUtils.safeClose(this);'. Setting STATE_CLOSED before the close method is called results in close returning immediately without invoking close listeners or notifying waiters.

      I imagine the state update should use 'state|= STATE_DONE;' to allow close to execute normally.

            flaviarnn Flavia Rainone
            carterkozak Carter Kozak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: