Re: [hybi] Apples and Orangutans

Greg Wilkins <gregw@webtide.com> Sun, 12 April 2009 23:25 UTC

Return-Path: <gregw@webtide.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 AF0233A6811 for <hybi@core3.amsl.com>; Sun, 12 Apr 2009 16:25:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.508
X-Spam-Level:
X-Spam-Status: No, score=-2.508 tagged_above=-999 required=5 tests=[AWL=0.091, BAYES_00=-2.599]
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 c4Cxm5ipRskK for <hybi@core3.amsl.com>; Sun, 12 Apr 2009 16:25:30 -0700 (PDT)
Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.189]) by core3.amsl.com (Postfix) with ESMTP id 8E0D93A6BA7 for <hybi@ietf.org>; Sun, 12 Apr 2009 16:25:29 -0700 (PDT)
Received: by ti-out-0910.google.com with SMTP id 24so1783927tim.14 for <hybi@ietf.org>; Sun, 12 Apr 2009 16:26:38 -0700 (PDT)
Received: by 10.110.33.15 with SMTP id g15mr8135721tig.1.1239578798542; Sun, 12 Apr 2009 16:26:38 -0700 (PDT)
Received: from ?10.10.1.12? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id j5sm3357999tid.21.2009.04.12.16.26.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Apr 2009 16:26:37 -0700 (PDT)
Message-ID: <49E278A6.20709@webtide.com>
Date: Mon, 13 Apr 2009 09:26:30 +1000
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.21 (X11/20090319)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <49DEF171.4080506@mozilla.com> <A3699591-148C-4795-967A-6CDE23FE75F0@apple.com> <Pine.LNX.4.62.0904122230550.10339@hixie.dreamhostps.com> <71289452-5A19-48F4-9819-7FD9747EE9CA@apple.com> <Pine.LNX.4.62.0904122251070.10339@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0904122251070.10339@hixie.dreamhostps.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: hybi@ietf.org
Subject: Re: [hybi] Apples and Orangutans
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: Sun, 12 Apr 2009 23:25:30 -0000

Ian Hickson wrote:

> I don't understand why a 16bit integer solves the problem for TCP, but a 
> string doesn't solve the problem for WebSocket. They seem exactly 
> equivalent to me -- they identify the target of the connection, and by 
> convention, the protocol that that target supports.

The big difference is that for the web you only have 2 strings
while TCP/IP has an infinite number of 16 bit integers.

ie The TCP/IP model is that if you want a ssh and 2 ftp conversations
then you open one connection to port 22 and 2 connections to port 21

On the web, we are limited (or should be limited) to 2 connections,
so you can't open an arbitrary number of websockets.

cheers