Re: Comet and Async Servlets - Architecture Question

2007-05-02 Thread Martin Perez
Sebastiaan, Yes you're right. I forgot to add something like isClosed() to your SynchronizedOutputStream so I can check if it's closed before writing. Anyways, I found that after a certain limit (for ex. 6000 - 8000 users) the system starts to behave incorrectly. Some clients never get an

Re: Exception with Comet in Tomcat with high load

2007-05-02 Thread Martin Perez
what else I could synchronize on. If anybody knows a better approach, I would like to know. :-) Regards, Sebastiaan Martin Perez wrote: Hi, Thanks for the tip Sebastian, but it doesn't work for me. I added your class, wrapped all the output streams and synchronized close events

Re: Comet and Async Servlets - Architecture Question

2007-05-02 Thread Martin Perez
Sorry about this last email. It was for Sebastiaan but in another thread. Cheers, Martin On 5/2/07, Martin Perez [EMAIL PROTECTED] wrote: Sebastiaan, Yes you're right. I forgot to add something like isClosed() to your SynchronizedOutputStream so I can check if it's closed before writing

Re: Exception with Comet in Tomcat with high load

2007-05-01 Thread Martin Perez
whenever I called event.close() on the Comet event (especially in the READ event). When doing serveral IO operations on the output stream which should not be interrupted, you can simply synchronize on it (since SynchronizedOutputStream locks on itself). Regards, Sebastiaan Martin Perez wrote

Exception with Comet in Tomcat with high load

2007-04-30 Thread Martin Perez
Hi all, I have been testing Tomcat comet support during the last days. I've created a test application that simulates data streaming to multiple clients. Clients open a connection to the server and the connection is hold open. In the server there are several sender threads that leverage comet

Re: how to close a comet request outside of an event?

2007-04-28 Thread Martin Perez
On 4/28/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, The request, wait, async response + close pattern seems to be a pretty common use case though, especially with server side push (AJAX), so it would still be good to have a solution that works well allways. Yes, and for this you

Comet stats

2007-04-26 Thread Martin Perez
Hi, For the activity seen in the last weeks it seems definitely clear that Comet is hot topic. Anyways, I've been playing now for some days with Tomcat 6 and Comet. No substantial tomcat related problems as far as I know, so great job. My scenario is quite simple. A desktop application opens a

Re: Comet question. Problem reading from http input stream

2007-04-24 Thread Martin Perez
for being a great implementation. Regards, Martin On 4/24/07, Rémy Maucherat [EMAIL PROTECTED] wrote: On 4/23/07, Martin Perez [EMAIL PROTECTED] wrote: Any suggestions? I would try to avoid using directly Object*Stream, to see what happens, and verify the validity of the data which is sent