Re: COMET End event subtype= null

2014-08-01 Thread Elias Kopsiaftis
ok now it is properly configured(I was missing the slash at the end of the tag), but Im still getting null for event subtypes. Any thoughts? On Fri, Aug 1, 2014 at 11:18 AM, Elias Kopsiaftis wrote: > ok looks like i have the configuration of > org.apache.catalina.valves.CometConnectionManagerV

Re: COMET End event subtype= null

2014-08-01 Thread Elias Kopsiaftis
ok looks like i have the configuration of org.apache.catalina.valves.CometConnectionManagerValve wrong. sorry about that. Still have the random disconnect error though On Fri, Aug 1, 2014 at 10:46 AM, Elias Kopsiaftis wrote: > I am developing a COMET application that is primarily based on the e

COMET End event subtype= null

2014-08-01 Thread Elias Kopsiaftis
I am developing a COMET application that is primarily based on the example given on the documentation of the chat server. My problem is that when two users connect, the connection held open by the comet servlet is closed. I know this because I am getting END events in my log. The confusing part is,

Re: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-08-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sudeep, On 8/1/2011 2:47 PM, Sudeep Pradhan wrote: > Stale as in, It gives me response which was suppose to be given for > the previous request (it gives me xml(previous) response instead of > json(current)). That's not what you said before. Can yo

RE: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-08-01 Thread Sudeep Pradhan
with Tomcat 6.0.32.* Is this a bug? Thanks, Sudeep -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Saturday, July 30, 2011 2:00 PM To: Tomcat Users List Subject: Re: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated On 29/07/2011 18:33, Sudeep

Re: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-07-30 Thread Pid
.@pidster.com] > Sent: Friday, July 29, 2011 12:32 AM > To: Tomcat Users List > Subject: Re: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is > terminated > > On 28/07/2011 20:42, Sudeep Pradhan wrote: >> Hi, >> >> I have a CometProcessor Servlet

RE: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-07-29 Thread Sudeep Pradhan
- From: Pid [mailto:p...@pidster.com] Sent: Friday, July 29, 2011 12:32 AM To: Tomcat Users List Subject: Re: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated On 28/07/2011 20:42, Sudeep Pradhan wrote: > Hi, > > I have a CometProcessor Servlet which is

Re: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-07-29 Thread Pid
On 28/07/2011 20:42, Sudeep Pradhan wrote: > Hi, > > I have a CometProcessor Servlet which is used for streaming system events to > a http client. I have SSL enabled on the server. I use *curl* as the http > client. I get streaming events on the console. But when I do a Ctrl-C on the > console

Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-07-28 Thread Sudeep Pradhan
Hi, I have a CometProcessor Servlet which is used for streaming system events to a http client. I have SSL enabled on the server. I use *curl* as the http client. I get streaming events on the console. But when I do a Ctrl-C on the console there no End event is raised and hence the connection

Re: comet end event

2008-01-29 Thread Filip Hanik - Dev Lists
Peter Warren wrote: Could you indulge me and try the client with the sleep? just did, worked exactly as before. event: BEGIN, subtype: null event: READ, subtype: null Read 10 bytes: comet test for session: A01334D0AC22505DCD4B323820963FEC read error event: ERROR, subtype: TIMEOUT

Re: comet end event

2008-01-29 Thread Peter Warren
> > Could you indulge me and try the client with the sleep? > > > just did, worked exactly as before. > event: BEGIN, subtype: null > event: READ, subtype: null > Read 10 bytes: comet test for session: A01334D0AC22505DCD4B323820963FEC > read error > event: ERROR, subtype: TIMEOUT Hmm, not sure whe

Re: comet end event

2008-01-29 Thread Filip Hanik - Dev Lists
Peter Warren wrote: Could you indulge me and try the client with the sleep? just did, worked exactly as before. event: BEGIN, subtype: null event: READ, subtype: null Read 10 bytes: comet test for session: A01334D0AC22505DCD4B323820963FEC read error event: ERROR, subtype: TIMEOUT I see the e

Re: comet end event

2008-01-29 Thread Peter Warren
Could you indulge me and try the client with the sleep? I see the end event when there's a break/delay between sending a chunk and sending the last chunk. It is legal http to send the last chunk separately from preceding chunks, isn't it? > getting a -1 on a inputstream.read is normal (even for

Re: comet end event

2008-01-29 Thread Filip Hanik - Dev Lists
getting a -1 on a inputstream.read is normal (even for a regular servlet). that means you've reached EOF and shouldn't read anymore. I haven't tested with the sleep, and I did try with the cometgui, and that worked as well. Filip Peter Warren wrote: Is the read error expected behavior? I g

Re: comet end event

2008-01-28 Thread Peter Warren
Is the read error expected behavior? I guess I didn't expect the comet processor to send me a read event on a last chunk since there's nothing to be read. I thought either a read error or an end event after a last chunk indicated a problem. If the read error is ok, then... Did you try the clien

Re: comet end event

2008-01-28 Thread Filip Hanik - Dev Lists
works just dandy, the timeout happens after quite some time of just waiting Jan 28, 2008 2:33:31 PM org.apache.coyote.http11.Http11NioProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jan 28, 2008 2:33:31 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1005 ms event

Re: comet end event

2008-01-27 Thread Filip Hanik - Dev Lists
ector is a supported TC6 feature Thanks Martin - Original Message - From: "Peter Warren" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, January 25, 2008 2:38 PM Subject: Re: comet end event I put up a war file at: http://www.nomad.org/comet_test.war.

Re: comet end event

2008-01-26 Thread Martin Gainty
I cant say implementing the NIOConnector is a supported TC6 feature Thanks Martin - Original Message - From: "Peter Warren" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, January 25, 2008 2:38 PM Subject: Re: comet end event > I put up a war file at: http

Re: comet end event

2008-01-25 Thread Peter Warren
I put up a war file at: http://www.nomad.org/comet_test.war. It includes the webapp, source for the comet servlet & client, and the server.xml file. Let me know if I missed anything. As I mentioned before, I've also used your cometgui.jar client and see the end event generated when using it as w

Re: comet end event

2008-01-24 Thread Filip Hanik - Dev Lists
even with your code, I wasn't able to replicate what you were seeing. what I would need to see what's going on for you: 1. a war file with your comet server, and source code 2. a test client 3. your server.xml Filip Peter Warren wrote: Thanks, Filip, for your time on this! I used your change

Re: comet end event

2008-01-22 Thread Peter Warren
Thanks, Filip, for your time on this! I used your changes and still get an END event. With your changes the client and socket are definitely staying alive now. I stepped through the client code and see the end event appear on the server as soon as I step through the line that writes the 0crlfcrl

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
his list are extremely responsive, patient, and helpful, and I really appreciate it! Hmm, in your test case did you set the HttpURLConnection to use chunked transfers (setChunkedStreamingMode(...))? I find if I use chunked transfers, the HttpURLConnection sends a "last chunk" messa

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
your test client is wrong,I've pasted in the correct one only three changes 1. set the timeout so that the socket stays alive 2. keep reading data so that the socket stays alive 3. 0crlfcrlf as the last chunk works as expected. to make a workable client, it should read until it gets the last-ch

Re: comet end event

2008-01-22 Thread Peter Warren
if (n > 0) { > > System.out.println("Read " + n + " bytes: " + new > > String(buf, 0, n) + " for session: " > > + request.getSession(true).getId()); > > } else if (n < 0) { >

Re: comet end event

2008-01-22 Thread Martin Gainty
cat Users List" Sent: Tuesday, January 22, 2008 11:58 AM Subject: Re: comet end event > I'll take a look at this for you! > > Filip > > Peter Warren wrote: > >> as I mentioned, the "last chunk" doesn't generate an END event, I tried > >>

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
this list are extremely responsive, patient, and helpful, and I really appreciate it! Hmm, in your test case did you set the HttpURLConnection to use chunked transfers (setChunkedStreamingMode(...))? I find if I use chunked transfers, the HttpURLConnection sends a "last chunk" message

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
emely responsive, patient, and helpful, and I really appreciate it! Hmm, in your test case did you set the HttpURLConnection to use chunked transfers (setChunkedStreamingMode(...))? I find if I use chunked transfers, the HttpURLConnection sends a "last chunk" message upon reading input from the ser

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
your responses. The contributors to this list are extremely responsive, patient, and helpful, and I really appreciate it! Hmm, in your test case did you set the HttpURLConnection to use chunked transfers (setChunkedStreamingMode(...))? I find if I use chunked transfers, the HttpURLConnection sends

Re: comet end event

2008-01-21 Thread Peter Warren
t > > are extremely responsive, patient, and helpful, and I really > > appreciate it! > > > > Hmm, in your test case did you set the HttpURLConnection to use > > chunked transfers (setChunkedStreamingMode(...))? I find if I use > > chunked transfers, the HttpURLConn

Re: comet end event

2008-01-21 Thread Filip Hanik - Dev Lists
(...))? I find if I use chunked transfers, the HttpURLConnection sends a "last chunk" message upon reading input from the server, which generates a comet END event on the server. If I don't use chunked transfers, no END event is generated because no "last chunk" is sent by the c

Re: comet end event

2008-01-21 Thread Peter Warren
, the HttpURLConnection sends a "last chunk" message upon reading input from the server, which generates a comet END event on the server. If I don't use chunked transfers, no END event is generated because no "last chunk" is sent by the client. Which brings up an option I

Re: comet end event

2008-01-20 Thread Filip Hanik - Dev Lists
writes are possible, but they're not when using HttpURLConnection because HttpURLConnection sends a "last chunk" message when it's done with its request. "Last chunk" generates a comet end event, which then requires that the connection to the client be closed. I gues

Re: comet end event

2008-01-19 Thread Peter Warren
ent due to permission problems when trying to use sockets behind a proxy. I understand that asynchronous writes are possible, but they're not when using HttpURLConnection because HttpURLConnection sends a "last chunk" message when it's done with its request. "Last chunk"

Re: comet end event

2008-01-19 Thread Filip Hanik - Dev Lists
o change my comet client to use HttpURLConnection instead of Sockets. (Accessing ProxySelector from an applet to create a socket with a proxy generates an AccessControlException.) HttpURLConnection unfortunately sends a 0crlf when its input stream is retrieved for reading. This generates a Com

Re: comet end event

2008-01-19 Thread Peter Warren
ector from an applet to create > > a socket with a proxy generates an AccessControlException.) > > > > HttpURLConnection unfortunately sends a 0crlf when its input stream is > > retrieved for reading. This generates a Comet END event. Short of > > closing the comet event, how can I mak

Re: comet end event

2008-01-18 Thread Filip Hanik - Dev Lists
) HttpURLConnection unfortunately sends a 0crlf when its input stream is retrieved for reading. This generates a Comet END event. Short of closing the comet event, how can I make the server stop notifying me of END events? I can't close the comet event because I want to hold onto the comet outpu

comet end event

2008-01-18 Thread Peter Warren
d for reading. This generates a Comet END event. Short of closing the comet event, how can I make the server stop notifying me of END events? I can't close the comet event because I want to hold onto the comet output stream for use later to send data to the client. >From the comet docs: EventTy