You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a client sends a RST_STREAM with code HTTP_REQUEST_CANCELLED, the server also needs to reset its end of the stream. As I read the spec, I'm unsure what error code best suits this purpose.
STOPPING says it is reserved by the transport in response to STOP_SENDING, so that's not it.
HTTP_REQUEST_CANCELLED is allowed S->C, but only if no processing of the request has occurred. What if part of the request has been processed?
A corollary question is, if a server cancels a request with a reset_stream, and does not send a STOP_SENDING, is the client expected to reply with HTTP_REQUEST_CANCELLED, a different error code, or continue sending until told to stop? CANCELLED seems ok here, but I dislike the asymmetry.
The text was updated successfully, but these errors were encountered:
I don't want to FIN a stream in response to a RST. For me, FIN implies successful completion and RST applies some kind of exception. I read section 3.1 to mean that if I shouldn't abort the response if I receive RST_STREAM/STOPPING (eg, I asked for one via STOP_SENDING).
NO_ERROR could be OK, though perhaps something with more semantic meaning would be better. "I'm terminating my half because you terminated your half". STOPPING more closely matches that but is reserved for transport.
I understand your points and don't have a strong preference.
The HTTP mapping has previously been accused of too many, too specific errors. So the question to ask would be, would your implementation do anything different if it received RST_STREAM with different application error codes?
Perhaps it would not do anything different - but I think this is a confusing area where more explicit text about the expectations of endpoints would help implementers.
If a client sends a RST_STREAM with code HTTP_REQUEST_CANCELLED, the server also needs to reset its end of the stream. As I read the spec, I'm unsure what error code best suits this purpose.
A corollary question is, if a server cancels a request with a reset_stream, and does not send a STOP_SENDING, is the client expected to reply with HTTP_REQUEST_CANCELLED, a different error code, or continue sending until told to stop? CANCELLED seems ok here, but I dislike the asymmetry.
The text was updated successfully, but these errors were encountered: