Summary

  • STOP_SENDING is a receiver's shrug at one incoming stream direction—not a certificate that the bytes already delivered were never read.
  • RESET_STREAM kills only the peer's sending direction, and final size records flow-control credit consumed rather than work completed or reversed.
  • Transport evidence and application evidence are two different ledgers. Merge them and your dashboard starts lying to you.

A client hits its timeout, decides the answer is no longer worth waiting for, and fires STOP_SENDING with an application error code. Somewhere a dashboard tile flips from pending to cancelled, and the room moves on. Meanwhile the remote side may already have charged the card, written the row, and put the parcel on the truck. Bytes and business actions do not share a state machine, and QUIC has never pretended otherwise.

RFC 9000 describes STOP_SENDING as the mechanism an application uses when it is no longer interested in data it is receiving: abort reading, and let the peer know. When the receiving part sits in Recv or Size Known, the transport should send STOP_SENDING to prompt closure of the opposite direction. The qualification is the part everyone skips—the frame is explicitly not a guarantee that incoming data will be ignored. Earlier STREAM bytes may already have arrived, been delivered upward, or been acted upon. Bytes that show up after STOP_SENDING still count against stream and connection flow control even when the transport cheerfully discards them.

The Peer's Answer Is Another Observation, Not a Verdict

What comes back is evidence, not confirmation. If the peer's sending part is in Ready or Send, it must send RESET_STREAM. In Data Sent, it may hold that reset until outstanding data is acknowledged or declared lost—and if data is declared lost, it should send RESET_STREAM rather than retransmit it. The peer should copy the application error code from STOP_SENDING, but it may pick a different one, and the sender may ignore the later RESET_STREAM code entirely. Two codes, two fields, two lines in the ledger. Collapse them into one and you have invented a conversation that never happened.

Direction Is the Boundary That Matters

RESET_STREAM abruptly terminates only the sending part of a stream. On a bidirectional stream the opposite direction keeps running, unbothered, like the other lane of a motorway after a single car pulls over. A party that wants both directions dead must send RESET_STREAM for its own sending direction and STOP_SENDING to encourage termination of the other. Neither action closes the connection, and neither proves that a request pair or a workflow has ended.

Final Size Counts Credit, Not Completed Work

Final size is just as easy to overread. It states the amount of stream data represented for connection-level flow-control accounting. Once known it cannot change, and it is communicated reliably whether the stream finishes normally or is reset. It says nothing about how much application work was completed, whether a remote operation was admitted, or whether a side effect was undone. After RESET_STREAM, the endpoint stops transmitting and retransmitting STREAM frames in that direction—a statement about transport behaviour, not a rollback of application state.

What QUIC Retransmits—and What It Never Retransmits

Reliability here has a deliberately narrow meaning. QUIC does not retransmit a lost packet as a whole; the relevant information is sent again in new frames as needed. RESET_STREAM continues until acknowledged or until all stream data is acknowledged. STOP_SENDING continues until the receiving part reaches Data Recvd or Reset Recvd. So acknowledgment or receipt shows progress through the QUIC stream state machine—and nothing more. It cannot prove the peer never consumed earlier bytes, accepted or declined the operation, rolled back durable effects, or completed compensation.

The Evidence Ledger: Transport Facts and Business Facts

A sound ledger records connection identity, stream ID, initiator, stream type, and the affected direction. It separately records the local decision to stop reading, every STOP_SENDING transmission and retransmission with its application error code, the peer's RESET_STREAM receipt and code, final size, flow-control accounting, and any later STREAM bytes. Only additional application evidence can establish remote admission or consumption, cancellation acceptance or rejection, durable effects, rollback, compensation, and the final outcome.

Adjacent Protocol Evidence: TR-045, TR-046, TR-052, TR-053

Keeping that boundary clean also prevents category errors with neighbouring protocol evidence. TR-045 concerns ACK and packet processing, not this request to stop a stream direction. TR-046 concerns flow-control permission, not application cancellation. TR-052 concerns DATAGRAM message boundaries and their absent delivery guarantees. TR-053 concerns CONNECTION_CLOSE and the end of transport state. STOP_SENDING is none of those: it is solicited cancellation of one stream direction on a connection that may stay perfectly alive.

Sources

https://www.rfc-editor.org/rfc/rfc9000.html#section-3.5 https://www.rfc-editor.org/rfc/rfc9000.html#section-4.4 https://www.rfc-editor.org/rfc/rfc9000.html#section-4.5 https://www.rfc-editor.org/rfc/rfc9000.html#section-13.3 https://www.rfc-editor.org/rfc/rfc9000.html#section-19.4 https://www.rfc-editor.org/rfc/rfc9000.html#section-19.5