Re: [hybi] Yet more additional WebSocket Close Error Codes

Julian Reschke <julian.reschke@gmx.de> Fri, 18 May 2012 10:54 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6A51B21F865D for <hybi@ietfa.amsl.com>; Fri, 18 May 2012 03:54:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.583
X-Spam-Level:
X-Spam-Status: No, score=-102.583 tagged_above=-999 required=5 tests=[AWL=0.016, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p2qpFwhnTQzW for <hybi@ietfa.amsl.com>; Fri, 18 May 2012 03:54:38 -0700 (PDT)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by ietfa.amsl.com (Postfix) with SMTP id 6F8B221F848E for <hybi@ietf.org>; Fri, 18 May 2012 03:54:37 -0700 (PDT)
Received: (qmail invoked by alias); 18 May 2012 10:54:36 -0000
Received: from p54BB26EE.dip.t-dialin.net (EHLO [192.168.178.36]) [84.187.38.238] by mail.gmx.net (mp070) with SMTP; 18 May 2012 12:54:36 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+zwF1QO3azgODsvmB8zIklvAEcJLAmdme73KWngr qhJWtPnW9IiK1C
Message-ID: <4FB62A69.4040604@gmx.de>
Date: Fri, 18 May 2012 12:54:33 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: Jason Duell <jduell.mcbugs@gmail.com>
References: <CAM6mnzJQTLxztd+6CTugRoONKiHNn-MDTJutPBoCtFUNnfBohQ@mail.gmail.com>
In-Reply-To: <CAM6mnzJQTLxztd+6CTugRoONKiHNn-MDTJutPBoCtFUNnfBohQ@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: hybi@ietf.org
Subject: Re: [hybi] Yet more additional WebSocket Close Error Codes
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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, 18 May 2012 10:54:38 -0000

On 2012-05-18 06:20, Jason Duell wrote:
> I'm wondering if there are two more close codes that would be useful,
> to indicate
>
>    1) remote server not reachable
>
>    2) client/browser has too many websockets open already (try later)
>
> Re: #1: Both Web Socket specs are a little vague IMO on how JS is
> notified when the targeted web socket server is down/nonexistent/etc.
>
> Firefox is firing an 'error' event when this happens, based AFAICT on
> the language here in the W3C spec:
>
>    "if the status code received from the server is not 101 (e.g. it is
> a redirect), the user agent must fail the websocket connection"

Well, no status code was received at all; so this doesn't seem to help :-)

> Chrome is not calling onerror for this, so we have a difference here.
> The language in the spec isn't really clear if this covers the
> connection-never-happened case.

I think it is; but I agree that the behavior for the other case should 
be specified at all.

> ...

Anyway; I think this should be raised as a WSAPI problem.

Best regards, Julian