Re: [hybi] New Version Notification for draft-mcmanus-httpbis-h2-websockets-00.txt

Martin Thomson <martin.thomson@gmail.com> Mon, 16 October 2017 04:15 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 60CFE133528 for <hybi@ietfa.amsl.com>; Sun, 15 Oct 2017 21:15:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 chfraP3U_gH4 for <hybi@ietfa.amsl.com>; Sun, 15 Oct 2017 21:15:32 -0700 (PDT)
Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com [IPv6:2607:f8b0:4003:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BEB671320CF for <hybi@ietf.org>; Sun, 15 Oct 2017 21:15:32 -0700 (PDT)
Received: by mail-oi0-x234.google.com with SMTP id h6so2940433oia.10 for <hybi@ietf.org>; Sun, 15 Oct 2017 21:15:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nYMiaHAsohed1fFQG6W1caH5GIa3Wgv6EuFlzjosgro=; b=CfJCCP2RZP9RmAT8Bhb5+oxk0KMdkNL5GbP9++KmySVLEHsepKjSJu5zGhgDVhz4dl JTDFFwEMxft6qD18rRuyfWUC0f3853maWAtWDPXKntw3VBIcHKMNwRD3tu8ikO3dw4W0 nkgEpO8ySavLcbO9KJrmi/8psNhTrehNCWZRWag0WDFKl3UIdDREZhBfUOhFH72iaUtV 3PjBgEdocI2Pj0TRSNdBL2Otu2jH42sQ6riikjGF/aeG8QCZdIsMZBNwO2HCFpSU/H7Y jqIXVUSvynyEZeq6vxRl8qNwswq5ICU9HH9i7Mzu7JH5u+FgLd0xci6L/yz99ciS4S/b eC0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nYMiaHAsohed1fFQG6W1caH5GIa3Wgv6EuFlzjosgro=; b=aQbUruhcagfSbmUJ5KCfFS15ACLkMsAQUXbRubyt7HXzk2N9TX119r2+N1WnvRyyA5 ibgtiNUKzOJm9u5aZTLqa6Mqm9C0Y3/rdpJ6AdKq0ipzQdqhnLmvC6Tq8Dj0c9cbeFrs hgcnXjk/KdqzfajF6tSh/vTbFQ70OH/gFIwLFXRp3owTV/C37dZGLwF9D/bAZiRaNgln vs/kFuJyRwzvPFJ+R/LAO8Tce8g/HgRU2VPIWMgw3mMGoKmQ7HNo8E/6oeULyLhke70e vMVxXJitHLeYMdmdkGQJ7bHvLssSIy9N4jb2VSUzewJInm2BB5j7fI9Q/q5/VHISLq2M JCzg==
X-Gm-Message-State: AMCzsaX5WL/DQJsyTK/hBQrPdIceok+KzvXhfOJnyVIPmA86prPomg6I WOEpK2ZC8HxshiH3tcnV/HBLIKLRpRv9J/Rmaig=
X-Google-Smtp-Source: ABhQp+QINkmM7nTQyQ6Ay3LYjsnZe81s35pDMvaFMUwPp8BuZoCrg6jvg7Zih8+IYHoewVnIm5tM9Ybq9Ttkt9hXisU=
X-Received: by 10.157.91.61 with SMTP id x58mr5688346oth.89.1508127332130; Sun, 15 Oct 2017 21:15:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.157.72.178 with HTTP; Sun, 15 Oct 2017 21:15:31 -0700 (PDT)
In-Reply-To: <dda4b424-b2e3-7096-c2ce-f61e54df2384@warmcat.com>
References: <150807649389.12130.9191022211105955718.idtracker@ietfa.amsl.com> <CAOdDvNqhaTJmLcEk3CwBBaAbdOroc4U46z+nJzC7+chd1ErSDA@mail.gmail.com> <FEBB57D4-E841-4F45-9B62-81FFC653FF70@lukasa.co.uk> <0F93FB58-579D-4F52-8F22-5FEAFBC99165@warmcat.com> <CAOdDvNpCVxsaKEzoW3EWsK1hmWSBPOP+GHnK-DcP4QO4om_khQ@mail.gmail.com> <f4bb6b5c-b12e-dc59-6faa-15588b692574@warmcat.com> <CABkgnnUfDwYmxi72f-x=z=iwf4+3L_rcLqufJRYvEMpP=Fb3MA@mail.gmail.com> <a4229e61-fb04-30b1-f2c7-a862645d0059@warmcat.com> <CABkgnnX0uXm1mDHL+dy6Z+mCZdofkEshd5jy-a0jV-Hsp88yQA@mail.gmail.com> <3dd5002d-49ca-4af5-1b38-f1dbe530b98e@warmcat.com> <CABkgnnWfTcGyUDBfSs1S+M4xaeELZKXa=9JP79kKKvsSjL_ouA@mail.gmail.com> <dda4b424-b2e3-7096-c2ce-f61e54df2384@warmcat.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 16 Oct 2017 15:15:31 +1100
Message-ID: <CABkgnnVeXGzw2HjxkUWW8O_EOjhe6j3p1yqJUuezvMnBtHxtLQ@mail.gmail.com>
To: Andy Green <andy@warmcat.com>
Cc: Patrick McManus <pmcmanus@mozilla.com>, hybi <hybi@ietf.org>, Cory Benfield <cory@lukasa.co.uk>, Patrick McManus <mcmanus@ducksong.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/hybi/4yQe_hBoFY1qY383_KvmXF6lmG4>
Subject: Re: [hybi] New Version Notification for draft-mcmanus-httpbis-h2-websockets-00.txt
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/hybi/>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Oct 2017 04:15:34 -0000

On Mon, Oct 16, 2017 at 3:06 PM, Andy Green <andy@warmcat.com>; wrote:
> What you are saying will save time I already assume is "for free" since it
> happens during the time the HTML is fetched.

Assuming that you need to some HTML, that will take a round trip, but
that is concurrent with learning that the server supports websockets.
After that, you should be able to CONNECT and send any frames at the
same time:

C: SETTINGS
C: GET /index.html
S: SETTINGS  <-- I support :protocol
S: 200 + DATA
C: CONNECT + ws hs + DATA <-- client's first WS frames
S: 200 + ws hs + DATA <-- server's first WS frames

Still only two round trips.

Were you concerned that the client needs to learn that the server
supports websockets and not just :protocol?