Hi

I'd like to try it.
However I am not accustomed to building tomcat.

Do you have this compiled somewhere?

Best regards,
  Steffen


-----Ursprüngliche Nachricht-----
Von: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] 
Gesendet: Dienstag, 19. Januar 2010 15:50
An: Tomcat Users List
Betreff: Re: Comet Connection Writeable?

Hi Steffen,
At http://svn.apache.org/viewvc/tomcat/sandbox/gdev6x/
I implemented the feature you are looking for.

Where you would do

CometEvent.interestOps(CometEvent.CometOperation.OP_WRITE);

and you will receive a

CometEvent.EventType.WRITE

When I tried to write sample applications against this, it turned out to 
be very complex programming.
You can check out that branch and build it and see if its something we 
should still pursue

Filip

On 01/18/2010 09:06 AM, Steffen Heil wrote:
> Hi
>
> I am using comet connections for some time now in a server push manner:
> Whenever the server needs to inform the client about some event, it sends
a
> packet to the client and waits for a reply in the same connection.
> As soon, as a READ event is triggered, that reply is read and the next
> message can be sent.
>
> Now, this requires a round-trip-time between the client and the server and
> is inappropriate for larger amounts of data especially on high latency
> connections.
>
> I am seeking for a way to determine (from a comet servlets point of view)
if
> a connection is writeable - this is, if output buffers are empty and I can
> send additional data.
>
> Note, that sending a huge amount of data at once is not an option, I need
to
> send distinct parts...
>
>
> So here are my questions:
>
> - How can I detect if a connection is writeable?
> - That is, how can I detect if the output buffers are empty?
> - Is there a way to use comet connection for something like a selector?
>
> Regards,
>    Steffen
>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to