- From: Martin Thomson <martin.thomson@gmail.com>
- Date: Fri, 9 May 2014 12:34:49 -0700
- To: Roberto Peon <grmocg@gmail.com>
- Cc: HTTP Working Group <ietf-http-wg@w3.org>
On 9 May 2014 12:10, Roberto Peon <grmocg@gmail.com> wrote:
> What creates a surprising corner case?
What you are proposing:
function isFlowControlled(frame) {
return frame.type === 'DATA';
}
becomes:
var firstHeadersDone = false;
function isFlowControlled(frame) {
if (frame.type === 'DATA') {
return true;
}
if (!firstHeadersDone) {
if (frame.type === 'HEADERS' || frame.type === 'CONTINUATION') {
firstHeadersDone = frame.flags.END_HEADERS;
}
return false;
}
return frame.type === 'HEADERS' || frame.type === 'CONTINUATION';
}
Or something like that. That's not particularly straightforward.
Such complexity requires justification.
Received on Friday, 9 May 2014 19:35:16 UTC