Sierk Schmittner wrote:
Hi,


 I am using a Comet-based servlet and I'm facing two problems:
- When I write the data to the response's outputstream and call the flush
method, the data is only send to the client when there is a minimum amount
of bytes written on the outputstream. Is it possible to change this
behavior
so that the data is send immediately?

response.flushBuffer() ?


I'm calling response.flushBuffer(), but the data is not received immidiately
by the client, only when a certain amount of data is written.
what kind of "client" is it? that could be part of it too
Is it possible
that there is any connection to the packet size or some buffer? I am using
the APR connector and tried to set the tcpNoDelay parameter to true, but it
did not work. Have you any other idea?
try the NIO connector and see if there is a different behavior

 - When the last task ist finished, its result should be send back to the
client and the connection should be closed. Is it possible to terminate
the
connection on the server side? Or how can I trigger the Comet-End-Event?


there is a fix in tomcat/trunk SVN to allow async CometEvent.close event
waiting for the next 6.0.x release before I propose the backport

So the fix will be in the next 6.0.x release? Is there a release date?
not at this time
Best regards,

  Sierk

------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG. Version: 7.5.524 / Virus Database: 269.24.4/1473 - Release Date: 5/29/2008 7:53 PM


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to