tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <>
Subject Re: Comet Event handling unclear
Date Mon, 01 Oct 2007 16:31:27 GMT
you should receive one BEGIN event per connection, one READ event per 
connection, and you wont receive end or error until the client or server 
closes the connection or times out


Deepak J wrote:
> I have developed a simple servlet that implements the CometProcessor and logs
> "Begin Event Received", "Read Event Recieved" or "End Event received" as
> might be the case.
> My client program opens an HttpUrlConnection to do a POST, sets "Connection:
> Close", and writes data that is approx 160KB. I then does a
> connection.connect() and closes the connetion after a 200.
> I would have expected to see 1 BEGIN event log, 1 or more READ event logs
> and 1 END event log in the server.
> I am running Tomcat 6.0.14/ Java 1.5 on Redhat Linux. I am using the
> connector "org.apache.coyote.http11.Http11NioProtocol' with its default
> settings.
> So when I run my client program I recieve 2 being events and 2 read events
> and no end event.
> Can someone explain this behaviour? Does the connector need to be tweeked to
> use NIO effectively in the scenario?

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message