ietf-wg-webtrans / draft-ietf-webtrans-http3

Internet Drafts for WebTransport
Other
40 stars 13 forks source link

inconsistent behavior when receiving CLOSE_WEBTRANSPORT_SESSION #156

Closed marten-seemann closed 2 months ago

marten-seemann commented 3 months ago

This probably doesn't matter in practice, but it seems inconsistent to FIN the stream upon receipt of the CLOSE_WEBTRANSPORT_SESSION capsule. For example, the receiver might be in the middle of sending a CLOSE_WEBTRANSPORT_SESSION themselves (and blocked on flow control, for example). Semantically, FIN would imply that transmitting on this stream finished successfully.

An endpoint that sends a CLOSE_WEBTRANSPORT_SESSION capsule MUST immediately send a FIN. The endpoint MAY send a STOP_SENDING to indicate it is no longer reading from the CONNECT stream. The recipient MUST close the stream upon receiving a FIN.

Instead, the receiver should reset the stream.