Re: [hybi] Additional WebSocket Close Error Codes
Salvatore Loreto <salvatore.loreto@ericsson.com> Sun, 27 May 2012 09:34 UTC
Return-Path: <salvatore.loreto@ericsson.com>
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 3887D21F8499 for <hybi@ietfa.amsl.com>; Sun, 27 May 2012 02:34:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.248
X-Spam-Level:
X-Spam-Status: No, score=-106.248 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_SE=0.35, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, 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 f3jNm+ZGHn0P for <hybi@ietfa.amsl.com>; Sun, 27 May 2012 02:34:25 -0700 (PDT)
Received: from mailgw7.ericsson.se (mailgw7.ericsson.se [193.180.251.48]) by ietfa.amsl.com (Postfix) with ESMTP id 7C67321F8480 for <hybi@ietf.org>; Sun, 27 May 2012 02:34:24 -0700 (PDT)
X-AuditID: c1b4fb30-b7f606d0000002be-53-4fc1f51ee201
Received: from esessmw0247.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw7.ericsson.se (Symantec Mail Security) with SMTP id AA.92.00702.E15F1CF4; Sun, 27 May 2012 11:34:22 +0200 (CEST)
Received: from mail.lmf.ericsson.se (153.88.115.8) by esessmw0247.eemea.ericsson.se (153.88.115.94) with Microsoft SMTP Server id 8.3.264.0; Sun, 27 May 2012 11:34:22 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id C827C2325 for <hybi@ietf.org>; Sun, 27 May 2012 12:34:21 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 9F65B52FC4 for <hybi@ietf.org>; Sun, 27 May 2012 12:34:21 +0300 (EEST)
Received: from Salvatore-Loretos-MacBook-Pro.local (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 0E5F95296F for <hybi@ietf.org>; Sun, 27 May 2012 12:34:20 +0300 (EEST)
Message-ID: <4FC1F51C.7070906@ericsson.com>
Date: Sun, 27 May 2012 12:34:20 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: hybi@ietf.org
References: <4FB3765D.5060308@isode.com> <001401cd340c$446034e0$cd209ea0$@noemax.com> <CAH_y2NEqgUKeu5VHYkm59vmybseq6gkMNQqCY0WcqM8BSYtSrQ@mail.gmail.com> <4FBE2F1E.1030307@isode.com> <4FC011B4.1080508@gmail.com>
In-Reply-To: <4FC011B4.1080508@gmail.com>
Content-Type: multipart/alternative; boundary="------------070004030808040604080707"
X-Virus-Scanned: ClamAV using ClamSMTP
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsUyM+Jvra7c14P+Boua5C3ev9zG5MDosWTJ T6YAxigum5TUnMyy1CJ9uwSujBV9LAXvoiua+rYxNjA+s+9i5OCQEDCReLFBqouRE8gUk7hw bz1bFyMXh5DAKUaJVy1vWCCcDYwSnUsOs0M45xkl7pxewgjhHGKUmH14JwtIv5DAaUaJMzeT QMbyCmhL7D4WAxJmEVCVWLXxLDuIzSZgJvH84RZmEFtUIFmi93wDmM0rIChxcuYTsDEiQHb3 1jVgcWEBK4nnC+5BLb7CKHFw7iImkASngKbE3xW9bCA2s0CYxPqVp9ghflCTuHpuEzPEPVoS vWc7mSYwCs9CsmMWkhYI21biwpzrUHF5ie1v5zBD2LoSF/5PQRFfwMi2ilE4NzEzJ73cXC+1 KDO5uDg/T684dRMjMCIObvltsINx032xQ4zSHCxK4rx6qvv9hQTSE0tSs1NTC1KL4otKc1KL DzEycXBKNTCWbTy06+e6fy7vjgamzomddPpN1qLgL+ulcrQf/2nNn31Mb2qJoJNCcdNXUwMh c1YD7mvRBy+Gd9wLLpOZPd30lKvq0z+beqsSS3ae27/4SNWj15/+cPw0+HjP8YKEm9m2IvvS R9cNsmO/H6qLOfEhZnfAG4EzzzO61zyT8XPwklGUErh45Ym1EktxRqKhFnNRcSIABEGpuFYC AAA=
Subject: Re: [hybi] 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: Sun, 27 May 2012 09:34:26 -0000
Hi, here you can find the list of registered codes http://www.iana.org/assignments/websocket/websocket.xml /Sal On 5/26/12 2:11 AM, Jason Duell wrote: > On 05/24/2012 08:52 AM, Alexey Melnikov wrote: >> On 21/05/2012 11:45, Greg Wilkins wrote: >>> >>> They both look reasonable. >> >> Ok, I will register these, but I will call the second one "Try Again >> Later" instead of "Service Overload". "Try Again Later" is used by >> other protocols and the meaning is more generic. >> > > I never got much of an answer about adding a new code for "client has > too many websockets open", but let me ask it again. We could > conceivably have your proposed 1013 code ("try again later") cover > this case. But one downside of this is that it doesn't distinguish > between the case where the application could open a connection to > another server (a particular server is overloaded), and the case where > no websockets are going to work unless/until some existing ones go > away (Client websocket limit reached). So I suggest we want different > codes for these. > > This could look like > > 1013 "Server busy" > 1014 "Too many websockets open in client" > > assuming 1014 isn't taken yet--where's the list of proposed codes? > > Thoughts? > > Jason Duell > Mozilla > > >>> On 17 May 2012 11:05, Arman Djusupov <arman@noemax.com >>> <mailto:arman@noemax.com>> wrote: >>> >>> Yes. These status codes do make sense and it is preferable to >>> have them >>> standardized. >>> >>> With best regards, >>> Arman >>> >>> -----Original Message----- >>> From: hybi-bounces@ietf.org <mailto:hybi-bounces@ietf.org> >>> [mailto:hybi-bounces@ietf.org <mailto:hybi-bounces@ietf.org>] On >>> Behalf Of >>> Alexey Melnikov >>> Sent: Wednesday, May 16, 2012 12:42 PM >>> To: Hybi >>> Subject: [hybi] Additional WebSocket Close Error Codes >>> >>> Hi WG, >>> I am sorry I didn't followup on this when the following 2 codes were >>> suggested (See >>> <http://www.ietf.org/mail-archive/web/hybi/current/msg09284.html>): >>> >>> 1012/Service Restart >>> 1012 indicates that the service is restarted. a client may >>> reconnect, >>> and if it choses to do, should reconnect using a randomized >>> delay of 5 - >>> 30s. >>> >>> Use case: >>> restart a service with 100k clients connected >>> clients present an informative user notification ("service >>> restarting .. >>> reconnecting in N secs) >>> clients should not reconnect all at exactly the same time .. >>> thus the >>> randomized delay >>> >>> >>> 1013/Service Overload >>> 1013 indicates that the service is experiencing overload. a client >>> should only connect to a different IP (when there are multiple >>> for the >>> target) or reconnect to the same IP upon user action. >>> >>> Use case: >>> clients present an informative user notification ("service >>> overload .. >>> try later or try different IP) >>> >>> ----- >>> >>> Do people use these and is there still some interest in >>> registering them? >>> >>> Best Regards, >>> Alexey >>> >>> _______________________________________________ >>> hybi mailing list >>> hybi@ietf.org <mailto:hybi@ietf.org> >>> https://www.ietf.org/mailman/listinfo/hybi >>> >>> _______________________________________________ >>> hybi mailing list >>> hybi@ietf.org <mailto:hybi@ietf.org> >>> https://www.ietf.org/mailman/listinfo/hybi >>> >>> >> >> >> >> _______________________________________________ >> hybi mailing list >> hybi@ietf.org >> https://www.ietf.org/mailman/listinfo/hybi >
- [hybi] Additional WebSocket Close Error Codes Alexey Melnikov
- Re: [hybi] Additional WebSocket Close Error Codes Arman Djusupov
- Re: [hybi] Additional WebSocket Close Error Codes Greg Wilkins
- Re: [hybi] Additional WebSocket Close Error Codes Alexey Melnikov
- Re: [hybi] Additional WebSocket Close Error Codes Jason Duell
- Re: [hybi] Additional WebSocket Close Error Codes Salvatore Loreto
- Re: [hybi] Additional WebSocket Close Error Codes Alexey Melnikov
- Re: [hybi] Additional WebSocket Close Error Codes Jason Duell
- Re: [hybi] Additional WebSocket Close Error Codes Jamie Lokier
- Re: [hybi] Additional WebSocket Close Error Codes Tobias Oberstein