Re: [hybi] workability (or otherwise) of HTTP upgrade

"Simon Pieters" <simonp@opera.com> Fri, 10 December 2010 09:51 UTC

Return-Path: <simonp@opera.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 3576528C0D7 for <hybi@core3.amsl.com>; Fri, 10 Dec 2010 01:51:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.306
X-Spam-Level:
X-Spam-Status: No, score=-6.306 tagged_above=-999 required=5 tests=[AWL=0.293, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 z5CkBYaLxg7H for <hybi@core3.amsl.com>; Fri, 10 Dec 2010 01:51:02 -0800 (PST)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id CDE5B3A6C92 for <hybi@ietf.org>; Fri, 10 Dec 2010 01:51:01 -0800 (PST)
Received: from dhcp-190.linkoping.osa (c-2e98e355.410-6-64736c14.cust.bredbandsbolaget.se [85.227.152.46]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBA9qQYx010108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 10 Dec 2010 09:52:27 GMT
Content-Type: text/plain; charset="utf-8"; format="flowed"; delsp="yes"
To: John Tamplin <jat@google.com>, Zhong Yu <zhong.j.yu@gmail.com>
References: <BB947F6D-15AA-455D-B830-5E12C80C1ACD@mnot.net> <81870DB1-B177-4253-8233-52C4168BE99D@apple.com> <F4D1B715-3606-4E9A-BFB2-8B7BC11BE331@mnot.net> <57D4B885-B1D8-482F-8747-6460C0FFF166@apple.com> <37A00E8D-B55C-49AD-A85C-A299C80FFF17@mnot.net> <4F2580A7-79C2-4B0A-BCE5-7FB6D9AA0ED7@apple.com> <BB31C4AB95A70042A256109D461991260583956C@XCH117CNC.rim.net> <EA41A6C7-971C-4EC8-AA6F-96363B7FDC4C@gmail.com> <73E53F19-E0E7-4ADB-B765-ABAF0B4A6736@mnot.net> <r2f0g6d7bj770kg0db5ptr027ninmckns8@hive.bjoern.hoehrmann.de> <20C2FBB9-901F-4235-AF23-EC8262585905@mnot.net> <1291905941.2315.2113.camel@ds9.ducksong.com> <4D011146.3080906@caucho.com> <AANLkTi=CKU8H5A2f7rSGZ9h5mrp=NZW0yLB9O6=MDW5i@mail.gmail.com> <AANLkTimg774w-JVExm4YQJzuBv3gaJZOLMo5OymDsMiE@mail.gmail.com> <op.vng1ixmaidj3kv@dhcp-190.linkoping.osa> <AANLkTi=Ow=hGxwuOdMBtfmm2mBnYHK3d5TLRMkrpK_kd@mail.gmail.com> <AANLkTikaPaSLZUtkQdvrtfkFLy0Xn0ngDfH6BeQT88c8@mail.gmail.com>
Date: Fri, 10 Dec 2010 10:52:25 +0100
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: Simon Pieters <simonp@opera.com>
Message-ID: <op.vnhsdnsgidj3kv@dhcp-190.linkoping.osa>
In-Reply-To: <AANLkTikaPaSLZUtkQdvrtfkFLy0Xn0ngDfH6BeQT88c8@mail.gmail.com>
User-Agent: Opera Mail/11.00 (MacIntel)
X-Scanned-By: MIMEDefang 2.64 on 213.236.208.81
Cc: hybi <hybi@ietf.org>
Subject: Re: [hybi] workability (or otherwise) of HTTP upgrade
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: Fri, 10 Dec 2010 09:51:03 -0000

On Fri, 10 Dec 2010 02:07:49 +0100, Zhong Yu <zhong.j.yu@gmail.com> wrote:

> On Thu, Dec 9, 2010 at 6:48 PM, John Tamplin <jat@google.com> wrote:
>> On Thu, Dec 9, 2010 at 7:12 PM, Simon Pieters <simonp@opera.com> wrote:
>>>
>>> But what is the use case for cookies in WebSockets? (If it has been
>>> discussed before then I have missed it and would appreciate pointers.)
>>
>> Simply that applications split between HTTP and WebSockets are likely to
>> want to share that data.  If you don't include cookies, then you force  
>> every
>> app to reinvent the wheel of how to transfer their session ID/etc.
>
> I think that's a small and acceptable price. It certainly won't be a
> problem for GWT.
>
> WS provides a very different programming model, how it manages states,
> and how it shares states with HTTP, is too risky for us to pin down.
> We better leave it to applications.

I agree. However, it would be useful to hear feedback from authors using  
WebSockets. Do they want the cookies or not?


> Previously I raised the question of how a WS connection sync with HTTP
> cookies if cookies are changing. And I think the best answer is to
> leave it to applications.

That's the situation now.


> It is difficult for us to choose a best
> strategy for app developers. If in one browser window http cookies are
> updated, should that affect the WS application in another window? We
> don't know.

The spec says to use the cookies you would use if you were issuing an HTTP  
request. So I think it's clear enough.

-- 
Simon Pieters
Opera Software