When a Stream is locally closed for writing but there is some data buffered for writing still, the YamuxHandler shouldn't immediately close the Stream for writing (by issuing FIN frame) and discarding the write buffer.
It should rather mark the Stream as closed for writing and wait for the suitable window update(s) to send the remaining data and only then issue a FIN frame.
When a Stream is locally closed for writing but there is some data buffered for writing still, the
YamuxHandler
shouldn't immediately close the Stream for writing (by issuingFIN
frame) and discarding the write buffer.It should rather mark the Stream as closed for writing and wait for the suitable window update(s) to send the remaining data and only then issue a
FIN
frame.