On 25/01/2012 13:17, jean-frederic clere wrote:
> On 01/25/2012 02:00 PM, Mark Thomas wrote:
>> On 25/01/2012 08:11, Mladen Turk wrote:
>>> On 01/24/2012 10:15 PM, Mark Thomas wrote:
>>>> I have made some further headway with this and the latest patch is on
>>>> people.a.o [1].
>>>>
>>>
>>> How that relates to Servlet spec 3.1?
>>
>> TBD :)
> 
> Even if it would not make it into servlet 3.1 it is a _very_ feature to
> have.

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.

Control messages are not supported at all (so you can't close the
connection yet).

You'll need to apply [1] to trunk. 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.

There are features still to be implemented and I know there is plenty of
scope to improve performance. One example is that the reading and
writing of data passes through rather more layers than it needs to. I'd
like to explore adding rawRead() and rawWrite() to the InputBuffer and
OutputBuffer which would access the socket directly. Another area is GC.
I have paid little attention to GC concerns while writing this. I dread
to think how much heap this will chew up under load.

I haven't approached the Jetty folks regarding aligning to a common
interface just yet. I want to let things bed down a little more first.

Anyway, I hope you enjoy playing with this. As always, feedback welcome.

Mark


[1] http://people.apache.org/~markt/patches/draft/2012-01-26-websocket.patch

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to