Skip to:
In NIOConnection the close() method first sets the state to State.CLOSED and then delivers the closing stream element:
State.CLOSED
However, the deliverRawText method checks for !isClosed() which is false by then, because it's aleady closed:
deliverRawText
!isClosed()
As consequence the closing stream element is never sent.
In NIOConnection the close() method first sets the state to
State.CLOSED
and then delivers the closing stream element:However, the
deliverRawText
method checks for!isClosed()
which is false by then, because it's aleady closed:As consequence the closing stream element is never sent.