Re: Design Issue: Max Concurrent Streams Limit and Unidirectional Streams

Martin Thomson <martin.thomson@gmail.com> Sat, 04 May 2013 19:16 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1424421F853A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 4 May 2013 12:16:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 71J67ihaE0J0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 4 May 2013 12:16:25 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 594BB21F9680 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 4 May 2013 12:16:25 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UYhvo-0004Pj-5M for ietf-http-wg-dist@listhub.w3.org; Sat, 04 May 2013 19:15:40 +0000
Resent-Date: Sat, 04 May 2013 19:15:40 +0000
Resent-Message-Id: <E1UYhvo-0004Pj-5M@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UYhvc-0004KP-Sa for ietf-http-wg@listhub.w3.org; Sat, 04 May 2013 19:15:28 +0000
Received: from mail-we0-f180.google.com ([74.125.82.180]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UYhvc-0005wy-7s for ietf-http-wg@w3.org; Sat, 04 May 2013 19:15:28 +0000
Received: by mail-we0-f180.google.com with SMTP id x43so2012138wey.25 for <ietf-http-wg@w3.org>; Sat, 04 May 2013 12:15:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Y+qzC85jigq6+W3mD1yiIXVoBfsS9wFRhA2/NWcYuB0=; b=Ydub2z9dSQXmOA6iY7VFeCSMgmtH0EAZho1qKba1zx0rYx8uT0PDSFn2f+bqZoZtPX TZvAd8tsY/lHjKMYP0Xlg/Z/TOU9ToIT0G4yFkNoygxIwYH/FOvKQcv4C+7k3yF0yFsV 6d/7GfCZVscillsT2lPX/CtHKAGLBC1TqRDbjpnLugNtNTOutS/LSNqmwQgmegeRj/ar XvOJqq+diMqcBlsxJqVMdBnCfD4Reevph4XBRKsVv63ujYkvoswIoP+HR+EvqZ0L4iKN Bt8vOwJZUuHQ1XqbzLJ4wSPaUn/WII3Yjr0o3+jXR5ceVqNBfzYA0t6z/hwUvkWSuJ7e tXOQ==
MIME-Version: 1.0
X-Received: by 10.180.14.5 with SMTP id l5mr2749094wic.32.1367694902063; Sat, 04 May 2013 12:15:02 -0700 (PDT)
Received: by 10.194.33.102 with HTTP; Sat, 4 May 2013 12:15:01 -0700 (PDT)
In-Reply-To: <CAP+FsNdjh8HVYbAT3w2OP_AsYhEs1x91i79wT3CnUkbMbV8LHw@mail.gmail.com>
References: <CABP7RbdBe-Xkx+CMvpN=_oNAqm6SyLyL+XNHRUKSqn8mjSDw1Q@mail.gmail.com> <CAA4WUYgCiyWerT0tUUVKcbNPqdTGuXHd_MG59DjcUsEWst5t7g@mail.gmail.com> <CABkgnnVdU=cZ53Bqg5Un=E80NMpcgYO37DVmwUFW0O-i7SNf8w@mail.gmail.com> <CAA4WUYhz64FsEGgGhx91RfWwuPPxWdAkesOV-bmqWVWE7ZxdjA@mail.gmail.com> <CABP7RbcKQkn1o4WZscwNmSmm6YzqE_TKxPr4jnozNdaVqpZ7=A@mail.gmail.com> <CAA4WUYhF6rAZoYEaz4aJO6xawaJxzxGt=Bkg4H9eBOP-LBSRmQ@mail.gmail.com> <CAP+FsNezQzxdZEJY_2_0h_TR2pBbVsGyGBhQhKcm-65pt6S8rQ@mail.gmail.com> <CABP7RbevS8M0q9OxzPncqY_gE34q5-ymdg2hOX2SQgSUNkhzsw@mail.gmail.com> <CAA4WUYjAbuUqz9RdO+-p3a4EsyuS=Gv0rS-U-Vh+ZCjtDjFy6w@mail.gmail.com> <CAP+FsNec2LLZMjtGhSX-1q8qg66WtBoM5K0yMrs5m4VKXb5OVg@mail.gmail.com> <CAA4WUYgAT64jj=Am06MsA02A+eAcDrVbbgb4opO37bnMkWTPfg@mail.gmail.com> <CABP7Rbdgz=kRZPfjHK5UUfieq8uz=ToQZjFt1-+s9scj1CogmA@mail.gmail.com> <CAA4WUYjSjFKSdbj=QBLn0T4ufhzF1hUY=O=Qa2dfnkTzMXF0bg@mail.gmail.com> <CABP7RbejssYWH+nEumVX__+4TnE1ec8e1YXeY8kqWF+AgszTrg@mail.gmail.com> <CAA4WUYiRVxM78Dr+eh9ksVvW_9=S01mHxt_Wr+SyaVECmc0e-g@mail.gmail.com> <CABP7RbexX0T=yYKPeKFeGEnzMAcO7fAifZh6LfLCOngLDNQHUA@mail.gmail.com> <CABkgnnUeicCNUa70GW7Vv9-bbwLPiPM=2-_t28Qz5o6DT0jF8Q@mail.gmail.com> <CABP7RbfbmTqFHPkRvj2K6iZ=Oo7MsT3hD9Y33fmtU9HOLoDmUA@mail.gmail.com> <CAA4WUYj81k1dK-LV+=h-yto4WEpVWFaRnCQZ+h55mipYCnQeYw@mail.gmail.com> <CABkgnnVEy7LPU2sUrKVFTLpEVP4RcWnbdgs1oRvmNFujZGQBOg@mail.gmail.com> <CAA4WUYhznNY_2YBUoMq4Us5NO0r_04Caz9_O1iZUrW4kc3kNcA@mail.gmail.com> <CABP7RbeJ6Fhs-ncpA4cGQ8SQHayamCmUn=xCmcagwBUs6NLyxg@mail.gmail.com> <CAA4WUYgp_b4SZ-OeXyFRiknU0OeWK5bsn-ihiFJqKk26UpHdyQ@mail.gmail.com> <CAP+FsNdfT0du=P7TzE4pPPgzaCi2YR-jpeE1US0inm46n9Z5pQ@mail.gmail.com> <CAA4WUYgANXbyre3RbSgMQG60Ve72Rw-+YpPXJEJ-4CXTXq0s4w@mail.gmail.com> <CAP+FsNdjh8HVYbAT3w2OP_AsYhEs1x91i79wT3CnUkbMbV8LHw@mail.gmail.com>
Date: Sat, 04 May 2013 12:15:01 -0700
Message-ID: <CABkgnnV=hDaGKeZBZd7prb0TB8ro64ntuocJPvWDR3tg9sfT4Q@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Roberto Peon <grmocg@gmail.com>
Cc: "William Chan (陈智昌)" <willchan@chromium.org>, James M Snell <jasnell@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=74.125.82.180; envelope-from=martin.thomson@gmail.com; helo=mail-we0-f180.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.685, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UYhvc-0005wy-7s 95c441fee7d73befa779e6666fb9a1a8
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design Issue: Max Concurrent Streams Limit and Unidirectional Streams
Archived-At: <http://www.w3.org/mid/CABkgnnV=hDaGKeZBZd7prb0TB8ro64ntuocJPvWDR3tg9sfT4Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17837
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 3 May 2013 14:43, Roberto Peon <grmocg@gmail.com> wrote:
> No argument there. Except for the issue with the lifetime of headers, it is
> a very pretty design (the only thing you end up having to change is the
> strict requirement on stream ID mentions being in monotonic order, which
> we're loosening anyway for push). As a matter of fact this was one of the
> ways we had discussed for SPDY/1 :)

I don't see headers being a property of the streaming or framing
layers, so I never really considered this to be a problem.  The fact
that they live beyond the lifetime of a single stream direction
doesn't mean that you need to change how you write your code.

To give another case, headers already need to live beyond the lifetime
of both directions of a stream when that stream triggers a push.

> In general any server/proxy/loadbalancer will wish to keep headers about for
> the shortest time period possible as they typically represent either the
> largest or a very large chunk of the state the server keeps resident. It is
> possible to do fancy/complicated things to reduce this burden.. but they're
> fancy/complicated :)

Wasn't that always true though?  I can't imagine that a high
performance server would be holding strings for most headers.  The
only cases that might be needed for are cookies (as always).