tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Speirs <wspe...@apache.org>
Subject Multiple Comet Requests to the Same Server, from the Same Client
Date Wed, 18 Jan 2012 16:22:52 GMT
I have a basic CometProcessor servlet implemented, and everything appears
to work as expected, except for one small issue: I cannot make multiple
requests from the same client to the same server.

My servlet simply sends messages to the client as they come in (think of it
as a one-sided chat, no POST). This works fine, except when I open a second
browser to the same server from the same client, I do not see the "void
event(CometEvent event)" method being called. The browser just sits and
spins waiting to connect. However, if I connect from a second client (IP
address), then the "void event(CometEvent event)" method is called, and the
second client starts receiving messages.

It seems as though tomcat (or the comet filter) is limiting the number of
connections from the same IP address. I have not tested this yet, but that
would be an issue in NAT situations where all connections would appear to
come from the same IP address. Thoughts?

Running:
tomcat-7.0.6
servlet-api-2.5.jar
tomcat-*-7.0-SNAPSHOT

Thanks...

Bill-

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message