Hello,
Your posts helped a lot. Thanks everybody!
Now I have a production level asynchronous servlet (a Santa Claus'
gift?), and I want to share some technical learned lessons:
- You must ensure the response be commited before asynchronous writes,
say on the BEGIN event, as said Filip and Frank
ffd wrote:
I found the origin of the problem in my case. The problem was neither the
synchronization nor the connection gone. It was that the asynchronous
writing started too early, before the connection was completely established,
speaking losely...
just call response.flushBuffer() on the B
I found the origin of the problem in my case. The problem was neither the
synchronization nor the connection gone. It was that the asynchronous
writing started too early, before the connection was completely established,
speaking losely...
When I made sure that the writing starts *after* all t
Leonardo, Filip,
I face the exact same problem (tried with 6.0.13 and 6.0.14 on Vista), with
a very similar code. Though I'm writing small packets with very high
frequency (speex narrowband audio packets).
The NPE shows up after 30 seconds or so in my case. I also did a sync on the
response, an
a NPE probably has nothing to do with synchronization, more like you are
trying to write back on an invalid connection (that probably timed out)
Filip
Leonardo Fraga wrote:
Hello,
I'm developing a java web application for finances quotes' real-time
stream, for hundreds of concurrent users. T
Hello,
I'm developing a java web application for finances quotes' real-time
stream, for hundreds of concurrent users. The solution involves a long
http request serving javascript snippets that will be executed by broser
when received, changing the data shown to the user.
To do this, I have a