MAX_CONCURRENT_STREAMS=0 and PUSH_PROMISE

Gábor Molnár <gabor.molnar@sch.bme.hu> Tue, 23 July 2013 14:30 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 9D2E911E8153 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 23 Jul 2013 07:30:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.676
X-Spam-Level:
X-Spam-Status: No, score=-9.676 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, 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 G52I4sRCEnbx for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 23 Jul 2013 07:29:47 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id F11FB11E8230 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 23 Jul 2013 07:29:46 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1V1dam-0007B5-Ef for ietf-http-wg-dist@listhub.w3.org; Tue, 23 Jul 2013 14:29:32 +0000
Resent-Date: Tue, 23 Jul 2013 14:29:32 +0000
Resent-Message-Id: <E1V1dam-0007B5-Ef@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <gabor.molnar@sch.bme.hu>) id 1V1dac-00079r-Er for ietf-http-wg@listhub.w3.org; Tue, 23 Jul 2013 14:29:22 +0000
Received: from balu.sch.bme.hu ([152.66.208.40]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <gabor.molnar@sch.bme.hu>) id 1V1daa-0008Pl-JP for ietf-http-wg@w3.org; Tue, 23 Jul 2013 14:29:22 +0000
Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by balu.sch.bme.hu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0MQE00LBS884LD00@balu.sch.bme.hu> for ietf-http-wg@w3.org; Tue, 23 Jul 2013 16:28:54 +0200 (CEST)
Received: by mail-ob0-f173.google.com with SMTP id er7so1720899obc.18 for <ietf-http-wg@w3.org>; Tue, 23 Jul 2013 07:28:51 -0700 (PDT)
Received: by 10.64.24.210 with HTTP; Tue, 23 Jul 2013 07:28:31 -0700 (PDT)
X-Received: by 10.50.50.104 with SMTP id b8mr12341477igo.1.1374589731250; Tue, 23 Jul 2013 07:28:51 -0700 (PDT)
Date: Tue, 23 Jul 2013 16:28:31 +0200
From: Gábor Molnár <gabor.molnar@sch.bme.hu>
To: HTTP Working Group <ietf-http-wg@w3.org>
Message-id: <CA+KJw_5PcUxBiUnQ00=G2C4Q6MnaB=hpNDk+9eTeZMs3Lz-CpA@mail.gmail.com>
MIME-version: 1.0
Content-type: multipart/alternative; boundary="Boundary_(ID_DSKKJ+LSGhV6q6t4u0uQVw)"
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=H6QlDuRrkXdexGLCMAcNGeZdUZ0y9qYRMXNIIL4eVeA=; b=TTLyLeJ/BTvIg3za1bVpYy+YG6uJNnO6dheLxkH4BFIR2OHDwoV1FJErLua8k6dTWL JCFL3WhRAkJt6vXivEo6HbI/r5gNqFO1327byzQaQRQm27/fD0liqJn3hoHeG2J5YF1C 4jLblZm9dg3JUctnv5KcK19gilRJWW1XBNe3vuFafIKio4m4ut2o7Pr86ig6K6DqSomz 0Jmea5+eWXMM7AFDDgTBpglXIRVea/B1fd2hd2znC7gt/cmCWH6M6u4QKXSEAWReWRcM L7mfu1xr2eUPXiGfRGnCkLmUPbbDLfqUxYaRAs4oOcYM4q3QiBzlpH6FAPBIDaOiWv6M xCYg==
Received-SPF: pass client-ip=152.66.208.40; envelope-from=gabor.molnar@sch.bme.hu; helo=balu.sch.bme.hu
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.911, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1V1daa-0008Pl-JP 59453404fbf05ae1ce594267f4fa3396
X-Original-To: ietf-http-wg@w3.org
Subject: MAX_CONCURRENT_STREAMS=0 and PUSH_PROMISE
Archived-At: <http://www.w3.org/mid/CA+KJw_5PcUxBiUnQ00=G2C4Q6MnaB=hpNDk+9eTeZMs3Lz-CpA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18874
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>

It is possible to set SETTINGS_MAX_CONCURRENT_STREAMS to 0. AFAIK, the
design rationale behind this is that a client can forbid server push if it
does not implement it yet or just does not want to receive push streams.

Since streams in "reserved (local)" state do no count as active stream, the
server can still promise push streams even if
SETTINGS_MAX_CONCURRENT_STREAMS is 0. (But it can not actually send the
content on the promised stream.)

This goes against the design rationale, since clients will still have to be
able to deal with PUSH_PROMISEs if they want to comply to the standard.

What is the rationale behind not counting reserved streams as active? They
usually become active very soon so it would make sense to count them as
active as well. This would also prohibit servers promising streams when
SETTINGS_MAX_CONCURRENT_STREAMS is 0.

  Gábor