Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5BEC98A7 for ; Sun, 29 Jan 2012 01:21:05 +0000 (UTC) Received: (qmail 57347 invoked by uid 500); 29 Jan 2012 01:21:05 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 57138 invoked by uid 500); 29 Jan 2012 01:21:04 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 57129 invoked by uid 99); 29 Jan 2012 01:21:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Jan 2012 01:21:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of costin@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-tul01m020-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Jan 2012 01:20:56 +0000 Received: by obbup16 with SMTP id up16so4106644obb.18 for ; Sat, 28 Jan 2012 17:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ECvKHsrhn/JtVHs64VJGu+9rCqmcO+2nuW8kWoQGqvk=; b=sWMq+oME1SS8sIaDdoIAxz9HijDHhL+TeehPK+nGdejCrU3/ZTnxT1qCwigXyNRfOA zEl6TDV3vUpCa/wVz9hejYhrlNIrZ4DhBuDB+vYtGJ+bs/wDNmv7Tp9E0zpaNDPUbP/2 zo8yDONKx5Ey+eA+GjQ4S9FYt7pcT6/GA2SIc= MIME-Version: 1.0 Received: by 10.182.15.105 with SMTP id w9mr15071997obc.18.1327800035121; Sat, 28 Jan 2012 17:20:35 -0800 (PST) Received: by 10.182.101.164 with HTTP; Sat, 28 Jan 2012 17:20:35 -0800 (PST) In-Reply-To: <4F232EBC.4040902@apache.org> References: <4F1F1F55.807@apache.org> <4F1FB94A.7030101@apache.org> <4F1FFCDB.60201@apache.org> <4F200100.2080902@gmail.com> <4F21DE79.6020604@apache.org> <4F232EBC.4040902@apache.org> Date: Sat, 28 Jan 2012 17:20:35 -0800 Message-ID: Subject: Re: WebSocket progress report From: Costin Manolache To: Tomcat Developers List Content-Type: multipart/alternative; boundary=f46d0447f2d86d1b3704b7a08954 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0447f2d86d1b3704b7a08954 Content-Type: text/plain; charset=UTF-8 On Fri, Jan 27, 2012 at 3:09 PM, Mark Thomas wrote: > On 26/01/2012 23:15, Mark Thomas wrote: > > Good news. The WebSocket implementation has reached a state where you > > should be able to play with it. Receiving and sending of binary and text > > data via streams/writers and messages is all working as long as you > > don't use continuation frames. See the Echo example for the general idea. > > Some minor tweaks and clean-up [1]. Main improvement is that now if you > write more data than the buffer can handle it doesn't fall over. > > > I'm leaning towards committing this > > on the grounds that it changes very little of the existing code and - > > fingers crossed - it should stay that way. It will be easier for the > > wider community to experiment and provide patches once it is in trunk. I > > expect that the back-port to 7.0.x will wait until things were more > > feature complete and any obvious performance issues had been addressed. > > No-one has complained about this (yet) so I'll probably commit this some > time next week. > Not complaining - it's great to add this feature, please commit it - but I'm wondering if a lighter interface wouldn't be better. From looking at the implementation, it seems after the upgrade it keeps the InputBuffer/OutputBuffer ( and the whole Request / Processor / etc tree ). Would it be possible for example to release the Request, like it's done after request, in keep-alive, and use a lighter parser/callback on the socket ? I think one of the use cases for websockets is to support a _lot_ of open connections. Also the interface may be simpler without InputStreams. Costin > > > Anyway, I hope you enjoy playing with this. As always, feedback welcome. > > Mark > > [1] > http://people.apache.org/~markt/patches/draft/2012-01-27-websocket.patch > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > --f46d0447f2d86d1b3704b7a08954--