Re: [hybi] Is it important to know frame length at the start of frame? (was: Re: Discontinuation of mux ...)

Takeshi Yoshino <tyoshino@google.com> Thu, 13 February 2014 04:14 UTC

Return-Path: <tyoshino@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D78971A00DC for <hybi@ietfa.amsl.com>; Wed, 12 Feb 2014 20:14:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.926
X-Spam-Level:
X-Spam-Status: No, score=-1.926 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.548, SPF_PASS=-0.001] 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 YbxEj0qTtcGf for <hybi@ietfa.amsl.com>; Wed, 12 Feb 2014 20:14:40 -0800 (PST)
Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) by ietfa.amsl.com (Postfix) with ESMTP id B4D771A00D5 for <hybi@ietf.org>; Wed, 12 Feb 2014 20:14:39 -0800 (PST)
Received: by mail-we0-f172.google.com with SMTP id p61so6977664wes.3 for <hybi@ietf.org>; Wed, 12 Feb 2014 20:14:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=R5j51nv15t/obb4rBwDhxcUjNt5b5LClvK2n4r+7EQI=; b=acfOKt+utuaSf1HdEIlAGa6rk1MWdhLVX0AgQIsh45iGFM52aIMbR5jrJA87iFyBa8 W15AdbitjeE+gF7ed/Bprvd77kAI++p8q3hAz//jBl9nmuPqqi96PZ9SQJwV1DoPkNlZ HbbdDYQQl2I0FElba58PJUHKR4bwGzkI8doBKTiw5Hz2yECMOSqS76NJvKnLQo6ze44H kwsA0NzQCiQp9W8iBjKFyX6bE29TfBHXHuZfdcv2fPKzeUQ8K1lVdTIHdB1/Hzbbtrgg zP3FMOlX8NNufIVi3fn0OAxx7BEXr6DyH1MCG+86AgW5OasBfccDe5syadl6DtVXxrYG W1yg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=R5j51nv15t/obb4rBwDhxcUjNt5b5LClvK2n4r+7EQI=; b=SeGbZISAQ22yjZc+Z1txJjRBFmZ14+H5RZA4jG3W2wdTqG46DawrumgGen5wL/pbLF iQvbtMz21wyuBHeWrivm2JXmH4tp0EnuAHtHWxx3WbxT+hC8Gvh2qTphM6rug5bx53Ky hjY1sQa7FJmRfAPDWp9mNwJj1eeJPRQGp745uFEVSAVXLIRvVm0RyrAxvkIggOQyDEBV 8UN6b3v+Yfm1yVCcQm+lk//tinvDoc+Qo/SJ6gJa3DRa4VlUscdQEvaxRH3WyCWEDyoI Jqtmw1btzmY7FtDeB4mHv+N5pFVma8ntp0zNycwQwmdkhOIXasX0sEkfQjHOgrO91EKk mp6A==
X-Gm-Message-State: ALoCoQln4KadcBhANC/EXV03DeevPfBzy0gbDGJehw5D4U23p1HAmgKm6XoLu9Vr+MVQGDDpl1XiqxDaIPmyE0j9VISh3lzJyE3y5KItxudbJK4xHwJ9uQl51UR0UF9tIyfnJQSXn6hOdKRzpdMIWAPj9kTwkBWMQwbmdKe9TGW6j+29Tzq1UPUFN+UDCuvkDzZ08qtgS3e6
X-Received: by 10.180.73.173 with SMTP id m13mr4711543wiv.52.1392264878157; Wed, 12 Feb 2014 20:14:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.194.8.231 with HTTP; Wed, 12 Feb 2014 20:14:18 -0800 (PST)
In-Reply-To: <C5F162C5-D2FF-4140-B80B-5BF2DEE80AB1@zaphoyd.com>
References: <CAH9hSJbf_ABT7ECL9eS=_ADrncX8qBtxZv=uLcdu9_6GUv23Uw@mail.gmail.com> <CACuKZqEcA1Pv8RpWfmThMjTzi2BbVMMKXqujs6BxVfxRPZJ9NQ@mail.gmail.com> <C5F162C5-D2FF-4140-B80B-5BF2DEE80AB1@zaphoyd.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Thu, 13 Feb 2014 13:14:18 +0900
Message-ID: <CAH9hSJZ3KKViOTiwxjKjTe=bkoPtFC8cbkT=-RtJ5D9Bi9C03A@mail.gmail.com>
To: Peter Thorson <webmaster@zaphoyd.com>
Content-Type: multipart/alternative; boundary="f46d043c07e07f411b04f241edcb"
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Is it important to know frame length at the start of frame? (was: Re: Discontinuation of mux ...)
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Thu, 13 Feb 2014 04:14:42 -0000

On Thu, Feb 13, 2014 at 1:25 AM, Peter Thorson <webmaster@zaphoyd.com>wrote:

> > PING - not necessary while we are writing data. If peer is
>  > unresponsive, we'll learn that from TCP layer.
>
> It does provide some separation of concerns and the ability to do things
> like measure RTT during a long message.


There can be an intermediary which silently terminates TCP and relay
WebSocket traffic. In such case, app level request for pong is useful for
liveness detection. The intermediary still can relay unresponsiveness of
the peer endpoint to the endpoint (by disconnecting the TCP connection) and
maybe it needs to do so due to limited buffer. So, I admit that this
argument is not so strong support for necessity of PING.