Re: HTTP2 Stream timeouts?
Michael Sweet <msweet@apple.com> Sun, 10 August 2014 13:25 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93C331A0712 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 10 Aug 2014 06:25:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.06
X-Spam-Level:
X-Spam-Status: No, score=-6.06 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.668, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d4pLl-Pm94Ns for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 10 Aug 2014 06:25:25 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7E79E1A0717 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 10 Aug 2014 06:25: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 1XGT49-0002lK-Cm for ietf-http-wg-dist@listhub.w3.org; Sun, 10 Aug 2014 13:21:41 +0000
Resent-Date: Sun, 10 Aug 2014 13:21:41 +0000
Resent-Message-Id: <E1XGT49-0002lK-Cm@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <msweet@apple.com>) id 1XGT3i-0002ie-8G for ietf-http-wg@listhub.w3.org; Sun, 10 Aug 2014 13:21:14 +0000
Received: from mail-out6.apple.com ([17.151.62.28] helo=mail-in6.apple.com) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <msweet@apple.com>) id 1XGT3g-0000fm-OA for ietf-http-wg@w3.org; Sun, 10 Aug 2014 13:21:14 +0000
DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1407676844; x=2271590444; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AHSW5PD1oZXTM46d7VYoE8WYVYzmWdi7t29+0IVxdBc=; b=0mXoV+fc31rvTeHKFpVIX92xEkxdyOVI2zahjWEGjhK7x5Fod+hTiEbnkz8Qqkas JervvgRtMaPyU/WwW4xT2aXllf8/WUvJt076jwVCQFv9FiP+JNtdkmyMk9Nd1Nbb 1SYGDoUrO4xXM37o3hvBLoI3pXnhFVOlEVizBbEihR4D1tJ7nDiO8SrVFVOhFYEm cVjS4sKZuuYBfOsYYBgOqIZVgSMzre4i7Qc/J1oIeRKQoQGTydVnJmuUTI/xbMob QXCy39X9FDuRv1DBhRFPBgwm8w92aqB5Kux9J4V5Y9YrtiljMMPnVsGmnsj8o61F Axs29IldhRt7B42TOakFAw==;
Received: from mail-out.apple.com (honeycrisp.apple.com [17.151.62.51]) (using TLS with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by mail-in6.apple.com (Apple Secure Mail Relay) with SMTP id 9F.E9.32596.CA177E35; Sun, 10 Aug 2014 06:20:44 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; CHARSET="US-ASCII"
Received: from relay8.apple.com ([17.128.113.102]) by local.mail-out.apple.com (Oracle Communications Messaging Server 7.0.5.30.0 64bit (built Oct 22 2013)) with ESMTP id <0NA300KI2EEKKU80@local.mail-out.apple.com> for ietf-http-wg@w3.org; Sun, 10 Aug 2014 06:20:44 -0700 (PDT)
X-AuditID: 11973e15-f79d66d000007f54-44-53e771acfd90
Received: from cardamom.apple.com (cardamom.apple.com [17.128.115.94]) (using TLS with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by relay8.apple.com (Apple SCV relay) with SMTP id 41.85.11638.CA177E35; Sun, 10 Aug 2014 06:20:45 -0700 (PDT)
Received: from [17.153.45.113] by cardamom.apple.com (Oracle Communications Messaging Server 7.0.5.30.0 64bit (built Oct 22 2013)) with ESMTPSA id <0NA300A31EEIYE60@cardamom.apple.com> for ietf-http-wg@w3.org; Sun, 10 Aug 2014 06:20:43 -0700 (PDT)
From: Michael Sweet <msweet@apple.com>
In-reply-to: <CAH_y2NEk+uYisQBh0Ox_FSe1kzXFSj7X75akr2dzgnn+4wjeqw@mail.gmail.com>
Date: Sun, 10 Aug 2014 09:20:41 -0400
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-id: <A5147F93-D9F4-47E6-913E-80726521AF62@apple.com>
References: <CAH_y2NEk+uYisQBh0Ox_FSe1kzXFSj7X75akr2dzgnn+4wjeqw@mail.gmail.com>
To: Greg Wilkins <gregw@intalio.com>
X-Mailer: Apple Mail (2.1878.6)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsUiON3OWHdN4fNgg2/XuS0Ot8xicmD0ODpv P2sAYxSXTUpqTmZZapG+XQJXxvGPhgXb+So2rO5hbWC8zd3FyMEhIWAiceKhWRcjJ5ApJnHh 3nq2LkYuDiGBOUwSy7Y3sYMkeAUEJX5MvscCUs8sIC9x8LwsSJhZQEvi+6NWFoj62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PFvqN92rvZS4aatc66MTSQ+Se5kb1/b8 ljhSU5Au8oJRUZere8typxuLNZoMX6/czPLRb8Pb2vu+0kq7pq4JmcD/suriLEM7s65fOefy KzkWhfA3F2wPv8oun7OeLVOJpTgj0VCLuag4EQC1V4CrNwIAAA==
Received-SPF: pass client-ip=17.151.62.28; envelope-from=msweet@apple.com; helo=mail-in6.apple.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.677, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.668, SPF_PASS=-0.001, T_DKIM_INVALID=0.01
X-W3C-Scan-Sig: lisa.w3.org 1XGT3g-0000fm-OA 3c6ad8f7d7b263670eaac41602db04ac
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP2 Stream timeouts?
Archived-At: <http://www.w3.org/mid/A5147F93-D9F4-47E6-913E-80726521AF62@apple.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26582
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>
I think we do still need a reminder reference in the HTTP/2 spec (3.4 still applies, send a RST_STREAM to close an idle stream), and that a server can send a GOAWAY frame after a period of inactivity on the whole connection. On Aug 7, 2014, at 2:01 AM, Greg Wilkins <gregw@intalio.com> wrote: > > I'm wondering if we need to say something about stream timeouts in the draft? > > With HTTP/1 most servers/clients/intermediaries will timeout connections if there is no IO activity for a period. Some will also apply a total timeout for a complete message to arrive. Section http://tools.ietf.org/html/rfc7230#section-3.4 describes how such timeouts are handled. > > With HTTP/2, the IO activity style timeout no longer applies, as there can be lots of IO activity on other streams while a particular stream is stalled forever. Total timeouts can still apply. > > So is section 3.4 sufficient to describe behaviour for h2? or should we also set some expectation as to the possible longevity (or otherwise) of inactive streams? > > Note that I can see at least one use-case for long held idle stream. Basically it is the long polling use-case of "protocol abuse". Frameworks will still long poll over http2 and would benefit from a bit more certainty over how long an idle stream can be expected to live. I can even imaging more creative protocol abuse where a long held stream is used to enable push promises to be sent, thus allowing arbitrary resources to be sent from server to client. > > > > -- > Greg Wilkins <gregw@intalio.com> > http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that scales > http://www.webtide.com advice and support for jetty and cometd. _________________________________________________________ Michael Sweet, Senior Printing System Engineer, PWG Chair
- HTTP2 Stream timeouts? Greg Wilkins
- Re: HTTP2 Stream timeouts? Martin Thomson
- Re: HTTP2 Stream timeouts? Michael Sweet
- Re: HTTP2 Stream timeouts? Greg Wilkins