Hello everybody,
is it possible to perform client and server push through the same
connection via tomcat comet? The picture in the Low-Latency-Script tells
me that it is possible, but how? Thanks in advance
-Chris
Chris wrote:
I'm facing a strange problem,or maybe its even me. I want to create a
bidirectional communication between a client using async socket and my
tomcat webserver using apr. Everything seems to be setup correctly and
I receive the first client POST properly also the answer is written
and read by the client, but if the client now tries to send a second
piece of xml, I always receive a CLIENT_DISCONNECT, I expected a call
of the READ event. Wireshark tells me that the client sent it properly
to the server but somehow tomcat doesnt like it. On server I use the
chatServer example, a bit modified, cause I read the content inside
the read event and not at the begin event.
Am I doing something really wrong? I read somewhere that it is
possible to use bidirectional communication but somehow it doesnt work.
Communiction looks like this:
Client
____________________________________________________________________________________________________
POST /url/servlet HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.13)
Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13
Transfer-Encoding: chunked
145
<some xml></some xml>
___________________________________________________________________________________________________
Server
____________________________________________________________________________________________
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=F9A0B9BAB695EDB6C51253A24D8989D9;
Path=/streamcam_gwt
Transfer-Encoding: chunked
Date: Mon, 29 Mar 2010 15:44:25 GMT
9a
<some answer></some answer>
___________________________________________________________________________________________________
Client
_____________________________________________________________________________________________
8E
<second xml></second xml>
Thanks in advance.
-Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org