Re: [hybi] hybi Digest, Vol 8, Issue 41
Jason Duell <jduell.mcbugs@gmail.com> Fri, 30 October 2009 21:58 UTC
Return-Path: <jduell.mcbugs@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 4E1FA3A6A2D for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 14:58:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_42=0.6]
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 FLISbG6AHTDg for <hybi@core3.amsl.com>; Fri, 30 Oct 2009 14:58:37 -0700 (PDT)
Received: from mail-px0-f171.google.com (mail-px0-f171.google.com [209.85.216.171]) by core3.amsl.com (Postfix) with ESMTP id 45F013A6A13 for <hybi@ietf.org>; Fri, 30 Oct 2009 14:58:37 -0700 (PDT)
Received: by pxi1 with SMTP id 1so2284269pxi.32 for <hybi@ietf.org>; Fri, 30 Oct 2009 14:58:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=WJnyWq31ueJMcbaN65hEnrRF9q9zjF6qDKrJ8emwdqo=; b=Ek4Nr408r0K5ykiyMxuEAE5kbEsjnwzjworq9LnypVIarqCSNWC77mljhOlkmNqtpi /FUcK7hSZqA4dvJvlYUV40JDaNQ3TxOohKQzMUM0cKUS3u+PPphHU7hW3glhG1JehbMN diIMVl71LTuXBsQvCTgOwrsKeDg2fl5E70+iQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=oaQv+slApyVzNWiod15DihjF/TvBXUkIobwle2ow7tCEMqUVSCW+QRNz2JPthAzC+K 0Pol+l8oS5AuOebgPEjMx7vwye4j84WGUCwOHd+0LhOnT+hPJVrkahJkwD5xJBZQYI7/ DyyXESw4wbERlmovtf/FhScDDekHedaqEe2Qc=
MIME-Version: 1.0
Received: by 10.143.20.36 with SMTP id x36mr208790wfi.231.1256939930134; Fri, 30 Oct 2009 14:58:50 -0700 (PDT)
In-Reply-To: <mailman.3820.1256908248.4669.hybi@ietf.org>
References: <mailman.3820.1256908248.4669.hybi@ietf.org>
From: Jason Duell <jduell.mcbugs@gmail.com>
Date: Fri, 30 Oct 2009 14:58:30 -0700
Message-ID: <91a5e3ea0910301458q465e5778kb46bcaedc65595a6@mail.gmail.com>
To: hybi@ietf.org
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [hybi] hybi Digest, Vol 8, Issue 41
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, 30 Oct 2009 21:58:38 -0000
Greetings, all. I'm one of the developers on the Mozilla networking stack. We have a rather obvious interest in the discussion here, so I'll be keeping at least roughly abreast of the conversations here and chiming in when it seems useful. > > Could I ask you to more concretely describe your problem so that I could > > more concretely (maybe with actual code examples) describe the alternative > > solution that I am describing? >From my reading of the last few days' posts, it does seem like focusing on use cases might be the best way to move the conversation forward. The more concrete the use cases, the better. > > sticky load balancer with SSL offload that works with any ws app. Is there any particular reason one couldn't do sticky load-balancing just by remembering the TCP IP/port four-tuple for a given web socket? > Here's an example: Just like HTTP, there could be value in an > extension which compresses some frames. If it worked well, that'd be > a good thing to do _transparently_ in the browser+server, without > awareness by the WS application. > > But you can't provide a transparent compression extension, because the > browser has no way to signal to the server "I handle this extension". This strikes me as a good example for why we might want meta-data, if we can easily get it into the spec (by which I *really* mean easily get it into the almost-ready implementations of the current ws protocol/API drafts we already have in Mozilla and other browsers). But more use cases would be nice, beyond compression. > multiplexing protocol implemented in browser/server (not in application). What's the use case here? If a browser has two pages open that each want to connect to the same server? How likely is that? > orderly closing a ws connection implemented in an application > independent way. I'm quite sympathetic to providing guarantees about closing (or really, about delivery, which is what one really cares about usually). But I'm not clear on what the proposal is here. Yes, HTTP allows servers to arbitrarily close sockets, and thus we can't shove POSTS or other non-idempotent requests into a pipeline. But I don't see anything in the ws spec that is equivalent. So I'd like to see more detail here. What's the solution here (and to what problem(s)?) <brief rant>It's notable the in the current Internet, the main obstacle to things like pipelining are the existence of badly written proxies and intermediaries. These are the beasties that are still preventing us from turning on HTTP pipelining by default (even for GETs), all these years after HTTP 1.1 was specified. So a cynical part of me is tempted to believe that the easiest way to provide more predictable close semantics for ws applications is to ram the protocol past proxies via port 443/TSL, so that they can't muck up the works with their "extended" behaviors... </brief rant>. I feel better now. Anyway, I look forward to more conversation on all of this. I hope we can find a good balancing point between the need to keep things simple, implementable, and quickly deliverable on the one hand, and as fully-featured as is useful/practical on the other. Jason Duell Mozilla
- Re: [hybi] WS framing alternative Sylvain Hellegouarch
- Re: [hybi] hybi Digest, Vol 8, Issue 41 Jason Duell
- Re: [hybi] hybi Digest, Vol 8, Issue 41 Ted Goddard
- Re: [hybi] hybi Digest, Vol 8, Issue 41 Greg Wilkins
- Re: [hybi] hybi Digest, Vol 8, Issue 41 Jamie Lokier
- Re: [hybi] WS framing alternative Ian Hickson
- Re: [hybi] WS framing alternative Greg Wilkins
- Re: [hybi] WS framing alternative Roy T. Fielding
- Re: [hybi] WS framing alternative Greg Wilkins
- Re: [hybi] WS framing alternative Martin J. Dürst
- Re: [hybi] WS framing alternative Pieter Hintjens
- Re: [hybi] WS framing alternative Roy T. Fielding
- Re: [hybi] WS framing alternative Greg Wilkins
- Re: [hybi] WS framing alternative Greg Wilkins
- Re: [hybi] WS framing alternative Pieter Hintjens
- Re: [hybi] WS framing alternative Greg Wilkins
- Re: [hybi] WS framing alternative Pieter Hintjens
- Re: [hybi] WS framing alternative Greg Wilkins