Re: [hybi] change in 07: Payload only compression extension (was Re: With deflate-stream, Close frame doesn't work as an end of data marker)

Brian <theturtle32@gmail.com> Thu, 10 March 2011 07:20 UTC

Return-Path: <theturtle32@gmail.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C7D433A6808 for <hybi@core3.amsl.com>; Wed, 9 Mar 2011 23:20:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FJkxdKbG1T02 for <hybi@core3.amsl.com>; Wed, 9 Mar 2011 23:20:29 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by core3.amsl.com (Postfix) with ESMTP id CDB9D3A683C for <hybi@ietf.org>; Wed, 9 Mar 2011 23:20:29 -0800 (PST)
Received: by iyj8 with SMTP id 8so1587015iyj.31 for <hybi@ietf.org>; Wed, 09 Mar 2011 23:21:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=c1RiAH6A9/CBz6TrQgQWKqr+Pi9aI0AC4SV1jXAF6u4=; b=ROe1F0j8X7spWiJDkY8Y+fjKXBlk8uuOKzuu6TwGBmmRfUn5TVQ5QaGYihAxFWlb1a qvRpFAgCAt7MIKNX2owK/H4HYfro6sUoaSRpzZMzQ9Y89BUfdvMWY5vFGmpzc/03p2VF 3O7Oyp2DgIz1DTq1waQ9Tp3/Ws6uvbG9b1CmM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TKOHE+D0QszHoMHmXmYfbjJ+GyZ53fV1QtES6oCEAwzU+6rPgeOJ+H+DbyUk/Hj+K+ 66HOx/XVxELftxM+8AWblu4s3yE9QFVoFuYDHEmEwTe9M/sUF+l6FLpYdO7VKs9A85nF CxZpH6NViN9HxxyBuOsY/FMRm0C2WIGv2Rg4A=
MIME-Version: 1.0
Received: by 10.43.45.67 with SMTP id uj3mr9417889icb.442.1299741707070; Wed, 09 Mar 2011 23:21:47 -0800 (PST)
Received: by 10.231.149.19 with HTTP; Wed, 9 Mar 2011 23:21:47 -0800 (PST)
In-Reply-To: <4D7876B8.1010905@ericsson.com>
References: <OF4821AA00.120197B4-ON8825784E.0076F791-8825784E.00781253@playstation.sony.com> <4D77FB84.9010104@warmcat.com> <AANLkTin+JizCJ-tgr1bxTygaT_2ueT910JByq9BYGncS@mail.gmail.com> <4D7876B8.1010905@ericsson.com>
Date: Wed, 09 Mar 2011 23:21:47 -0800
Message-ID: <AANLkTimWj+KOL9wC1FgMxxYyxB0opULK=6GsNkwuPx5v@mail.gmail.com>
From: Brian <theturtle32@gmail.com>
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
Content-Type: text/plain; charset="ISO-2022-JP"
Content-Transfer-Encoding: 7bit
Cc: "Yutaka_Takeda@playstation.sony.com" <Yutaka_Takeda@playstation.sony.com>, "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] change in 07: Payload only compression extension (was Re: With deflate-stream, Close frame doesn't work as an end of data marker)
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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, 10 Mar 2011 07:20:30 -0000

Sounds fantastic!

Brian


On Wed, Mar 9, 2011 at 10:59 PM, Salvatore Loreto
<salvatore.loreto@ericsson.com> wrote:
> (as co-chair I want to bring your attention to this)
>
>
> Hi there,
>
>
> the following changes (proposed by Takeshi Yoshino in [1])
> has been largely discussed (for the technical reasons follow the discussions
> thread [1] and [2]):
> the discussion has highlighted that the proposal brings some benefit and no
> side effects.
>
>
>
> [1] http://www.ietf.org/mail-archive/web/hybi/current/msg06642.html
> [2] http://www.ietf.org/mail-archive/web/hybi/current/msg06801.html
> [3] http://www.ietf.org/mail-archive/web/hybi/current/msg06674.html
>
>
> so unless anyone object strongly -07 will include the "yoshino-san's
> proposal" [3]
>
>
> cheers
> /Sal
>
>
> --
> Salvatore Loreto
> www.sloreto.com
>
> On 3/10/11 7:22 AM, Ian Fette (イアンフェッティ) wrote:
>
> I'm going over the threads trying to figure out what i need to do, and I
> will admit that this one has me a bit stumped. If we adopt yoshino-san's
> proposal [1] to only compress the payload of the frame, does that put this
> issue to rest?
> [1] http://www.ietf.org/mail-archive/web/hybi/current/msg06674.html
>
> On Wed, Mar 9, 2011 at 2:13 PM, Andy Green <andy@warmcat.com> wrote:
>>
>> On 03/09/2011 09:51 PM, Somebody in the thread at some point said:
>>
>> Hi -
>>
>>>  > Are there other circumstances that can actually cause this I'm
>>>  > overlooking too easily?
>>>
>>> Yes. Since your receive buffer passed in recv(2) has a predetermined
>>> finite size and you may not be reading all data in the kernel space
>>> (TCP) buffer. Depending on how it is implemented and timing, the
>>> receiver may successfully extract Close frame out of data you have just
>>> read from TCP socket, and then close the socket without bothering to
>>> read the outstanding data in the kernel.
>>
>> It's a good point.  I can see how that's effectively fragmenting the thing
>> entirely in userland at the receiver.
>>
>> However that seems simple to solve since the extra junk data is already
>> received in kernel.  Just before socket close time we just need to use a
>> little poll() POLLIN loop with no timeout to drain it while there's stuff
>> immediately pending, right?  Nothing more will come and close is always
>> happy.
>>
>> -Andy
>> _______________________________________________
>> hybi mailing list
>> hybi@ietf.org
>> https://www.ietf.org/mailman/listinfo/hybi
>
>
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>
>