Re: [hybi] Web sockets and existing HTTP stacks

Mridul Muralidharan <mridulm80@yahoo.com> Mon, 01 February 2010 06:32 UTC

Return-Path: <mridulm80@yahoo.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 284763A68E0 for <hybi@core3.amsl.com>; Sun, 31 Jan 2010 22:32:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.861
X-Spam-Level:
X-Spam-Status: No, score=-1.861 tagged_above=-999 required=5 tests=[AWL=0.256, BAYES_05=-1.11, GB_I_INVITATION=-2, RELAY_IS_203=0.994]
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 trshMoVV0vPJ for <hybi@core3.amsl.com>; Sun, 31 Jan 2010 22:32:25 -0800 (PST)
Received: from web95410.mail.in2.yahoo.com (web95410.mail.in2.yahoo.com [203.104.18.234]) by core3.amsl.com (Postfix) with SMTP id B2E433A68B3 for <hybi@ietf.org>; Sun, 31 Jan 2010 22:32:23 -0800 (PST)
Received: (qmail 82686 invoked by uid 60001); 1 Feb 2010 06:32:55 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1265005975; bh=Jze8SeCKBtt9htJhw1zVonZtT3oeQ0rS1sF2bJTfedI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=EwWpQ4/qmx5UDzL4mFscq+SHoaNcJh/sMLNJiVfUye1urVWwAv3SdyEggCeC1rKv8Ll17gBBjR7WJeAxtkemAarX1MguaxQOK0CXxlZUcLsJ0kbwXrTmTDToH64F/KDQXJlokqEcaFzgsi1DCk5ZfavCMPsIPnItAMqPT678LIQ=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gYvbhL+OtWMjQTmo/PwdGA+jhdGgpDPf9t+IRWYFIPl/u+AOFYaRpTDAJba+KJpDdvTKz+dzyzEnNVtp5zycDwKsyWdK8Jl+Z0rTYyXM5a59h2cSTSiW6RJJkhYzYmzvNevxAegFnyDl/MvMT737Qg6DREq6edKN+gCwCsrak5U=;
Message-ID: <470737.82505.qm@web95410.mail.in2.yahoo.com>
X-YMail-OSG: 9bfUl4YVM1kYvovvAM0jAxY5oZqCxk_D7WPE9IoYJ4ivXu2hlP9fWGBbTX7nkaEswtrzlaVMLpbPRVLiaB61RVnUTrMa6Sp9oaTUIeppFO2CZb.raKtpvH1.EeJJ.lz4bSHwXcJQG0NEw.reZsbZo552h71SUrn7oYxKY3tYAUcNutRPbHE94eO6NDwo_dXgvCx2wORrZer8bKfyM6H_wC38l791_OSJ5CvV0QBeAU1Jeo8C1uwMj13A7vo4Do6dET8UX2rqb377O8S0Uda6kG.6XwHhaAOcyPO1__t_Uh_SYKsC
Received: from [203.83.248.32] by web95410.mail.in2.yahoo.com via HTTP; Mon, 01 Feb 2010 12:02:55 IST
X-Mailer: YahooMailRC/272.7 YahooMailWebService/0.8.100.260964
References: <557ae280911171402v7546e5e7n93a1e57f87dc10e5@mail.gmail.com> <557ae280911200711i5493e654k67c1f5f07336bfb9@mail.gmail.com> <Pine.LNX.4.62.0912032347360.15540@hixie.dreamhostps.com> <4B2C1D52.9020505@webtide.com> <5c902b9e0912181640n497169cdrfa71f9a2908e6ef3@mail.gmail.com> <20091219005442.GA10949@shareable.org> <4B2C287E.1030006@webtide.com> <Pine.LNX.4.64.1001310835410.3846@ps20323.dreamhostps.com> <5821ea241001311219j111d25a3h27fb2d05a2ece32d@mail.gmail.com> <20100201012914.GC20940@shareable.org>
Date: Mon, 01 Feb 2010 12:02:55 +0530
From: Mridul Muralidharan <mridulm80@yahoo.com>
To: Jamie Lokier <jamie@shareable.org>, Pieter Hintjens <ph@imatix.com>
In-Reply-To: <20100201012914.GC20940@shareable.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Cc: hybi@ietf.org
Subject: Re: [hybi] Web sockets and existing HTTP stacks
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: Mon, 01 Feb 2010 06:32:26 -0000

----- Original Message ----

> From: Jamie Lokier <jamie@shareable.org>
> To: Pieter Hintjens <ph@imatix.com>
> Cc: hybi@ietf.org
> Sent: Mon, 1 February, 2010 6:59:14 AM
> Subject: Re: [hybi] Web sockets and existing HTTP stacks
> 
> Pieter Hintjens wrote:
> > On Sun, Jan 31, 2010 at 10:22 AM, Ian Hickson wrote:
> > 
> > > Well, yeah. That's going to be the case with any protocol that shares its
> > > port with HTTP. Web Socket tries to make this easier by making it at least
> > > _possible_ to parse the header with an HTTP stack, if not necessarily
> > > easy.
> > 
> > Do you not understand the impact of breaking (cheerfully or not) a
> > 30-year standard respected by the entire Internet?
> > 
> > Post 80 is not shared by protocols.  Port 80 IS HTTP by definition, by
> > contract.
> 
> It is a fact that internet access is only granted over ports 80
> and/or 443 at some locations.
> 
> This is why WebSocket uses those.  It is for that practical reason,
> not from a desire to break the port convention.  Thus there is no
> point complaining on port convention grounds.


This is an oft-repeated argument in this list, and in some xmlrpc/WS lists - and I am not very sure I buy the argument.
There is a reason why only http is allowed by a lot of firewalls and proxies - and it is a deployment choice the customer makes : whether driven by security concerns, convention, or other - it is a conscious decision at times (not always, I admit).


The reasoning that - port 80 is not blocked, so let us tunnel protocol xyz over it, is not a very good line of reasoning: it is not an invitation for protocol designers to tunnel arbitrary protocols on top of http.
Either you send http on top of port 80, or use something else - so that a deployment has control : both in terms of security concerns, intermediaries which can be deployed, contractual validation, etc.

My 2 cents.
Regards,
Mridul


> 
> An earlier version of WebSocket proposed port 81, but that was changed to 80.
> 
> I do wonder if those sites only allowing port 80 all run intercepting
> proxies on port 80 which would prevent WebSocket using it, so that it might
> as well use port 81 anyway. Anybody know?
> 
> -- Jamie
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi



      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/