The two bytes everyone mistakes for a receipt
A payment client writes an instruction, flushes its buffer, and receives the server's close_notify. Its TLS library reports end-of-data with no protocol error. The client marks the order “paid.” Now ask the uncomfortable question: what exactly supplied the evidence? Not the alert. The server may have read the bytes and rejected the instruction, parsed it and died before commit, committed it and lost the response, or closed one direction while still reading the other. Every one of those outcomes is compatible with a flawless TLS closure.
That is the argument in one line: close_notify is a cryptographic full stop on a sending direction, not a business receipt. RFC 9846, the July 2026 Proposed Standard for TLS 1.3, is scrupulous about this. Implementations, and the product managers who read their logs, frequently are not.
What RFC 9846 actually promises
The standard gives close_notify a narrow, precise job. It is an orderly closure alert for one direction of the connection. The sender uses it to declare that it will send no more messages on that connection. Once the recipient has received it, later data must be ignored, and the TLS implementation should indicate end-of-data to the application.
Note the modesty of the claim. It is about messages, not meaning. The alert vouches for the sequence of bytes; it says nothing about what the receiving application did with them.
Two directions, two closures, and no commit vote
The phrase “one direction” carries most of the operational weight. Either party may close its write side with close_notify; doing so does not close its read side. The client can finish sending and keep reading. The server can finish sending while still receiving. TLS 1.3 deliberately refuses to turn one alert into a symmetric teardown.
Every party must send close_notify before closing its own write side unless it has already sent an error alert. But neither party has to wait for the other's alert before closing its read side, and the RFC warns that closing without waiting can introduce truncation. Two independently controlled directions therefore produce two closure events — not a distributed commit vote.
The alert exists to defend a channel boundary. If an underlying transport close arrives before close_notify, the receiver cannot know it received everything the sender sent. An authenticated closure alert separates an orderly end from an unexplained loss of the byte stream's tail. That is genuinely valuable evidence. It still does not reveal what the receiving application did with the bytes delivered before the boundary.
The warning label is not a business signal
The IANA TLS parameters registry assigns the alert description code for close_notify. RFC 9846 restores the requirement to send it with the legacy warning level. It is not an error alert merely because it lives in the alert protocol; error alerts describe abortive closure, prevent further data and trigger different state handling.
The restored warning label does not mean “optional” either. Severity and sending requirement answer different questions. An implementation normally must send the orderly alert before closing its write side. Calling it a warning cannot convert a protocol obligation into an advisory business event, just as a code-point registration cannot make it proof of a remote database state.
TLS 1.3 also corrected a damaging older reflex. Earlier versions required the receiver of close_notify to discard pending writes, answer immediately with its own alert and close — which could truncate the receiver's sending direction. The current rule keeps read and write independent, letting an application profile finish relevant output instead of treating peer closure as an order to abandon it.
An application may still choose to flush its send buffer and answer the moment it receives close_notify. RFC 9846 cautions that an attacker can influence what the peer receives by delaying the alert or delaying transport delivery of the application's packets. So the application needs its own rule: ignore new input after sending closure, or require a completed application response before deciding the operation's state.
Where the receipt actually lives
This is the difference between delivery ordering and effect authority. TLS protects records and supplies an authenticated end to their sequence. A reliable ordered transport supports the assumption that closing the write side delivers pending data before destroying the transport. Neither layer defines the application parser, validates a transaction identifier, allocates an idempotency key, commits storage or emits a durable receipt.
RFC 9293 supplies the TCP model beneath many TLS connections, including independently closing a sending side. RFC 9110 and RFC 9112 define HTTP semantics and HTTP/1.1 message framing above it. These layers compose cleanly, but composition does not erase their separate completion conditions.
For an HTTP transaction, the useful evidence might be a final response associated with the request, a complete message body under the applicable framing, and application-specific status semantics. For a queue, it might be a broker acknowledgement after durable placement. For a payment, it might be a domain receipt with a stable operation identifier. None of those arrives in the two bytes of an orderly TLS alert.
The reverse error: a missing alert is not a failed transaction
The distinction cuts both ways. Missing close_notify is not proof that an application operation failed. The application might have committed and returned a receipt before the transport disappeared. What is missing is the TLS truncation assurance for that direction. A retry policy that treats every absent alert as a licence to replay can duplicate a non-idempotent effect — and duplicate the charge along with it.
user_canceled does not rescue the interpretation. RFC 9846 uses that alert for a handshake cancellation unrelated to protocol failure. It must be followed by close_notify, and receivers should keep reading until closure. After the handshake, ordinary closure is more appropriate. These signals describe TLS state; they do not encode refund, order cancellation or withdrawal of application consent.
Profiles, QUIC and DTLS: the boundary travels
The standard also reserves authority to the usage profile. If an application protocol permits bytes on the same underlying transport after TLS has closed, the TLS implementation must receive close_notify before telling the application that TLS data ended. More broadly, RFC 9846 says it does not dictate how a TLS usage profile manages its data transport or when connections open and close.
That boundary prevents overgeneralisation. RFC 9001 uses TLS to secure QUIC's handshake but replaces TLS record protection and its KeyUpdate message, while QUIC carries its own connection-closing machinery. RFC 9147 gives DTLS its datagram-specific behaviour. A control designed around an ordered TLS stream cannot simply relabel every encrypted transport close as the same thing.
Identity stays separate too. RFC 9525 explains how application protocols bind service identity verification to TLS. That work happens at establishment, under the application's usage rules. An orderly close does not reauthenticate either party, extend an authorisation lease, confirm the human actor or approve a final side effect.
Three timestamps, one causal receipt
Operationally, three timestamps usually cluster: the last application write, the last accepted TLS record, and the closure alert. Temporal proximity is excellent for investigation and worthless as a receipt. A server can send closure after queueing work, before the worker commits it, or after deciding never to perform it. Only the application knows which state is authoritative.
So stop asking the socket to testify about the ledger. Record the two boundaries separately, join them with an identifier, and let the layer that owns the outcome own the answer. close_notify is valuable precisely because it ends one thing and only one thing; systems fail when that precision is quietly stretched into a promise about everything else.
Sources
- RFC 9846: TLS 1.3
- RFC 9846 publication record
- RFC 9846 errata
- IANA TLS Parameters
- RFC 8446: previous TLS 1.3 specification
- RFC 9525: Service Identity in TLS
- RFC 9147: DTLS 1.3
- RFC 9001: Using TLS to Secure QUIC
- RFC 9293: TCP
- RFC 9110: HTTP Semantics
- RFC 9112: HTTP/1.1
- RFC 5116: Authenticated Encryption
- Lu Heng: Minimum Initial Specification
- Lu Heng: The Policy Mirror
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






