- From: Ilari Liusvaara <ilariliusvaara@welho.com>
- Date: Sat, 15 Aug 2026 14:28:42 +0300
- To: ietf-http-wg@w3.org
On Thu, Aug 13, 2026 at 11:05:24PM -0700, aviral srivastava wrote: > > I have posted an Internet-Draft describing a case that RFC 7692 does not > appear to address, and I would appreciate guidance on whether there is an > appropriate venue for it. > > https://datatracker.ietf.org/doc/draft-srivastava-websocket-pmce-state-reset/ > > The short version: with permessage-deflate and context takeover in effect, > Section 7.2.2 requires the receiver to decompress each message using the > window from the previous message. Section 6.1 notes that after > decompression the payload is subject to the constraints of the original > data type again, so a UTF-8 check on a text message runs after the > plaintext has already entered the window. > > RFC 7692 does not say what the window should contain if that check refuses > the message. An implementation that retains the refused plaintext violates > no stated requirement, and a later message containing a back-reference can > then reproduce that content and be delivered. My reading of RFC 7692 is that unless no_context_takeover has been negotiated, the window MUST NOT be reset. Furthermore, it turns out that resetting the window can not possibly work (relativity). UTF-8 failures are a special case, as RFC 6455 requires tearing down the connection. Other that that, messages can be rejected without tearing down the connection. Unless no_context_takeover is in effect, all compressed data MUST be decompressed and added to the window, even if rejected by the application. And I do not see why window containing bad data is a problem. Message that passes policy can be similar to bad message. The window data is valid and the endpoints agree on it. The QPACK case is different: The window would end up containing something invalid, or the endpoints disagree on the window state. Both are serious problems. -Ilari
Received on Saturday, 15 August 2026 11:28:57 UTC