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 close

Re: Exception with Comet in Tomcat with high load

2007-05-02 Thread Martin Perez
vy duty testing); however I do not know 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

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 answe

Re: Exception with Comet in Tomcat with high load

2007-05-01 Thread Martin Perez
onized on this output stream 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

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 s

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 t

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
lly famous 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 vali

Comet question. Problem reading from http input stream

2007-04-23 Thread Martin Perez
Hi guys, I have implemented a comet servlet that implements CometProcessor. I have tested it and seems to work fine. The problem is that now I'm trying to interact with it through an old system that used to use ObjectInputStream/ObjectOutputStream classes. So i found a couple of issues that proba