Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Re: WebSocket progress report

svn commit: r1241243 - /tomcat/trunk/java/org/apache/catalina/mbeans/ContainerMBean.java
(16 lines)
DO NOT REPLY New: Daemon thread is terminated unexpectedly when uncaught exceptions is thrown from the other thread
(64 lines)
Feb 6, 2012
Jonathan Drake
Jonathan Drake
I'm one the three CS grad students working on WebSocket (along with Petr
Praus).

Just wanted to give an update on our progress, to let you know what we're
working on:

Adding support for fragmented payloads:
Right now, after receiving a frame, StreamInbound unmasks the payload in a
WsInputStream and passes it up to the servlet via
onBinaryData()/onTextData().
To support fragmented frames, we add an intermediate step: after unmasking
the payload, write it to a PipedOutputStream connected to a
PipedInputStream that we pass upward via onBinaryData()/onTextData(). When
the next fragment arrives, keep streaming data through the pipe.

This has the advantage of also allowing us to stream huge payloads (RFC
6455 allows for a 64-bit extended length field---way too much data to
buffer in memory all at once).
It has the minor disadvantage of breaking the ByteBuffer wrappers from
MessageInbound (we can still use them for small payloads if we buffer
fragments in memory)

I'm working on a patch that implements this...maybe a day or two.

I'd appreciate any early criticism you may have---otherwise I mainly just
want to prevent duplicate work by explaining what we're up to.

Cheers,

Jonathan Drake


Reply
Tags: cs grad studentsprauspayloads
Messages in this thread
Re: WebSocket progress report
reply Re: WebSocket progress report
(90 lines) Feb 7, 2012 03:47
reply Re: WebSocket progress report
(139 lines) Feb 8, 2012 20:42
reply Re: WebSocket progress report
(186 lines) Feb 9, 2012 09:07
reply Re: WebSocket progress report
(88 lines) Feb 9, 2012 09:54
reply Re: WebSocket progress report
(27 lines) Feb 9, 2012 10:04
reply Re: WebSocket progress report
(43 lines) Feb 10, 2012 10:06
reply Re: WebSocket progress report
(29 lines) Feb 10, 2012 10:49
reply Re: WebSocket progress report
(54 lines) Feb 10, 2012 11:09
reply Re: WebSocket progress report
(14 lines) Feb 13, 2012 14:17
reply Re: WebSocket progress report
(24 lines) Feb 13, 2012 14:19
reply Re: WebSocket progress report
(36 lines) Feb 15, 2012 17:18
reply Re: WebSocket progress report
(67 lines) Feb 15, 2012 22:02
reply Re: WebSocket progress report
(84 lines) Feb 16, 2012 07:31
reply Re: WebSocket progress report
(87 lines) Feb 17, 2012 14:50
reply Re: WebSocket progress report
(122 lines) Feb 19, 2012 20:56
reply Re: WebSocket progress report
(91 lines) Feb 20, 2012 04:04
reply Re: WebSocket progress report
(25 lines) Feb 20, 2012 14:35
reply Re: WebSocket progress report
(57 lines) Feb 20, 2012 15:29
reply Re: WebSocket progress report
(104 lines) Feb 20, 2012 16:19
reply Re: WebSocket progress report
(17 lines) Feb 20, 2012 17:46
reply Re: WebSocket progress report
(127 lines) Feb 22, 2012 19:33
reply Re: WebSocket progress report
(31 lines) Feb 23, 2012 02:27
reply Re: Tomcat web site UI update
(68 lines) Feb 13, 2012 16:28
reply Re: Tomcat web site UI update
(27 lines) Feb 14, 2012 10:22
reply Re: Tomcat web site UI update
(56 lines) Feb 14, 2012 11:40
reply Re: Tomcat web site UI update
(76 lines) Feb 15, 2012 14:04
reply Re: Tomcat web site UI update
(88 lines) Feb 23, 2012 08:16
Re: WebSocket progress report
January 29, 2012 04:19:53 AM
On 29/01/2012 01:20, Costin Manolache wrote: > On Fri, Jan 27, 2012 at 3:09 PM, Mark Thomas <mar### @apache.org> wrote: > > Not complaining - it's great to add this feature, please commit it - but > I'm wondering > if a lighter…
Re: WebSocket progress report
January 25, 2012 11:55:01 PM
On 24.01.2012 22:15, Mark Thomas wrote: > I have made some further headway with this and the latest patch is on > people.a.o [1]. Looks nice, especially I like that the integration into the existing code base isn't very complex. Good work! …
Re: WebSocket progress report
February 1, 2012 03:58:08 PM
Hello, we're group of three CS grad students taking a course in advanced networking. As a course project, each of us has implemented a basic websocket server in Java with functionality roughly equal to the current state of Mark's patch. The next…
Re: WebSocket progress report
January 25, 2012 07:18:28 AM
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…
Re: WebSocket progress report
January 25, 2012 02:12:45 AM
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? Regards
Progress Report
August 15, 2010 11:52:10 PM
Hello guys, Today is the pencils down date of GSoC program, and the final evaluation will be started shortly. I’d like to take this chance to make a summary for my project. In this program, I have submitted 30 patches to complete the missing…
How to report cleanup progress (new API)?
December 6, 2010 11:20:28 AM
When most of the work is done by reducer at cleanup ( takes 90% of the job time) how can I report a proper progress of the overall job? By default the job tracker shows 100% right after all records are passed through the reduce(). I would rather…
Created: (PIG-1760) Need to report progress in all databags
December 8, 2010 07:16:47 PM
Need to report progress in all databags
report progress in a long running function (say POST)
May 5, 2011 03:06:18 PM
Hi all, I am wondering how I can report progress back to the client about a long-running function? Say I have: @POST @Path("/setup") Response setup(...) { ... } The setup function may take a long time to finish. Returning a Response.ok()…
Created] (HIVE-2464) report progress in MapOperator
September 22, 2011 08:02:24 PM
report progress in MapOperator
Resolved] (MAPREDUCE-474) ability to report numeric progress within a particular key
January 16, 2012 03:10:43 AM
[ https://issues.apache.org/jira/browse/MAPREDUCE-474?page=com.atlassian .jira.plugin.system.issuetabpanels:all-tabpanel ] Harsh J resolved MAPREDUCE-474.
Resolved] (HDFS-322) While digesting edits NameNode should report its progress
January 18, 2012 10:03:37 PM
[ https://issues.apache.org/jira/browse/HDFS-322?page=com.atlassian.jira .plugin.system.issuetabpanels:all-tabpanel ] Harsh J resolved HDFS-322.
Created] (HIVE-2641) SkewJoin should report progress while writing skew keys to HDFS
December 9, 2011 02:09:04 PM
SkewJoin should report progress while writing skew keys to HDFS
camel-websocket
February 3, 2012 05:28:57 AM
Hi, I' m working on camel-websocket component and I have created a first test case where I establish a connection between a WebSocket client and a Camel Webscoket route. The following route works fine from("websocket://test") …
Re: CouchDB & WebSocket
November 18, 2011 05:02:53 PM
Some example code or a tutorial might help others. Thanks in advance. Mark Hahn <mar### @hahnca.com> wrote: >> FYI its easy to put node on top of couch an the use socket.io > >+1 I'm using that in my current app. > >
CouchDB & WebSocket
November 18, 2011 03:12:39 PM
Hi all, We do a lot of work with WebSockets, internally and externally, and have found the solidifying drafts to be very good at increasing REST throughput, whilst avoiding the overhead of spinning up a new HTTP connection for each request. I was…
Timeout using WebSocket over Stomp
January 13, 2011 09:13:32 AM
Hello, I'm using websockets to connect over stomp to a topic. It's all working but after 300 seconds it seems that the connection goes in timeout and I don't get messages anymore. Is there a way to keep the connection alive using stomp? Do i…
websocket support for mod_proxy
August 9, 2011 01:50:26 AM
Is there any plans to implement websocket support in mod_proxy. I would think that it could be done pretty simply as a variation of mod_proxy_connect, as once the HTTP upgrade is done mod_proxy can treat the connection as a simple byte tunnel. I…
Does tomcat 7 support websocket?
December 3, 2010 12:08:47 PM
Hi, I know it got servlet 3.0 support, but does it support websocket handshake n bi-direction talk? Tks. PeiSong
Websocket API and review request
November 17, 2011 01:37:02 PM
Hi, I've gotten pretty far with adding websocket support to Yaws 1.91. I think it's time to hear how people would like to use it, and get comment on my code. The old Websocket support was based on the hixie group's protocol. It sounds like the…
Mod_uploadprogress on Lighttpd doesn't report progress
November 5, 2010
Hello! I have Lighttpd 1.4.26 on Ubuntu server with php (mod_fcgi). Also i'we build backport of mod_uploadprogress and altered sample files to…
Progress Bar in a Winform application , Increment Progress Bar till a query is executed on a database
June 8, 2011
I am connecting to a mysql database online from my local C# .NET Winform application. I want that till the application connects to the online…
Progress bar with django and nginx-upload-progress-module
January 10, 2011
I am trying to get a progress bar working with my uploads. I have nginx installed compiled with nginx-upload-progress-module. I am also using…
PHP Report Maker:Execute Report after Apply Extended Filter
May 27, 2011
I have a table with a large amount of data and is no possible to see the report. I use a custom view (is not possible to convert to mysql server…
Report from postgreSQL edmx file with Crystal Report
May 24, 2011
hello I have a program with 3 layer app,business and data and i have an edmx file in data layer with postgreSql database, how i report from tables…
How can I use use C++ to send data through a websocket?
January 6, 2011
I want to be able to send data over a websocket in my C++ code? Is there some library or standard way that this is done? Thanks for the help, I…
Websocket library for browsers?
April 1, 2011
Are there websocket libraries (like ajax for jquery) I can use on the browsers with fallback to ajax long polling?
Difference between socket and websocket?
February 11, 2011
I'm building web app that needs to communicate with another application using socket connections. This is new territory for me, so want to be sure…
Firewall blocks websocket
March 14, 2011
Hi everyone! Firewall (kaspersky/avast) blocked messages when I using websocket server (socket.io on node.js), what can i do? (except change default…
JS/HTML5 WebSocket: Connect without HTTP call
January 3, 2011
Alright so I just tried out the new WebSocket class in HTML 5, and was pretty excited they exist; however, I fail to see how they are much more…
Why would a websocket created with pywebsocket be closed automatically?
May 17, 2011
I want to test websocket with pywebsocket , after some configurations following some instructions I found on the Internet, I finally got it run.…
How are ajax/websocket domain searching services so fast?
April 4, 2011
I have been using ajaxwhois for years, and there are many of these services for finding domain names now. The fastest seem to use some sort of…
How do I alert client browser over a websocket connection to a change in mysql?
February 23, 2011
I have not found a tutorial that covers this. I do not want to move the long polling down the stack (As in php polls mysql for changes.) Scenario:…
How to know whether a shutdown is currently in progress?
April 27, 2011
In Tomcat, when the server is being shut down, it tries to set all static variables in classes it knows of to null. By touching these classes, their…
Terminal FTP client with progress bar
March 21, 2011
I'm SSHing to a headless Ubuntu box and sometimes need to upload files from that box via FTP. The built-in FTP client does not show the progress of…
Progress Dialog with TabActivity
February 15, 2011
I have created 3 tabs each tab performing different task on click of them.Each tab calls new intent that in turn make HTTP connection and display…
How can we show progress bar with FtpWebRequest
June 14, 2011
i am uploading files to ftp using FtpWebRequest i need to show the status that how much is done. sp far my code is public void Upload(string…
Vb net mysql reader progress
April 17, 2011
hey guys, i wanna know if its possible to find out in a reader how much reading is left to do. My code will be below and i think it be fairly…
How to see progress of .csv upload in mysql
April 21, 2011
I have a very large .csv file, and I'm loading it into mysql with the LOAD DATA INFILE command. Because it takes so long, I'd like to see how far…
Implementing a MySQL Command Progress Bar
February 17, 2011
We are trying to parse a file and store it in a MySQL database. The commands will be importing a large trace file the could be several gigabytes in…