Re: Streams after receiving GOAWAY
From: Cory Benfield <cory@lukasa.co.uk>
Date: Sun, 15 Nov 2015 10:52:03 +0000
To: HTTP Working Group <ietf-http-wg@w3.org>
Date: Sun, 15 Nov 2015 10:52:03 +0000
To: HTTP Working Group <ietf-http-wg@w3.org>
> On 15 Nov 2015, at 10:24, Glen Knowles <gknowles@ieee.org> wrote:
>
> I'm about to deliberately violate the letter of a MUST NOT because I believe it's overly strict.
>
> "Receivers of a GOAWAY frame MUST NOT open additional streams on the connection..."
>
> When the client gets a GOAWAY it will immediately start establishing a new connection, continue issuing new requests up to the reported last id, and close the old connection when it either has a new connection or has used all the reported streams.
>
> The goal is to avoid suspending requests in a high volume server to server environment while waiting for new connections. I don't see how it conflicts with any conforming implementation, am I missing something?
The client conflicts with *any* conforming implementation because it ignores the section of RFC 7540 that you just quoted. You’re not just violating the letter of that MUST NOT, you’re violating the spirit of it too, which is indicated in the first paragraph of that section of the spec:
> GOAWAY allows an endpoint to gracefully stop accepting new streams while still finishing processing of previously established streams.
GOAWAY is not intended as a mechanism for saying “I will process no more than n further streams”. If it were, it would be totally acceptable to open all connections with the preamble, followed immediately by GOAWAY(last_stream_id=100). This is not the intended use of GOAWAY.
Certainly my Python implementation would reject your client’s traffic, and in this regard I believe it is conformant.
Cory
Received on Sunday, 15 November 2015 10:24:44 UTC
Message-ID: <CAJCH0yBs5LxvYmgvbLHX7NgSptfBUF4TB7tw_OeuyFpTiiLbUg@mail.gmail.com>
Contemporary messages sorted by: date, thread, subject, author
This archive was generated by hypermail 2.3.1: Sunday, 15 November 2015 10:24:47 UTC