activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve.V." <stephen.vinc...@sas.com>
Subject I see defaultReadTimeout=-1 in MessageServlet.java, but experience 20 secs.
Date Sun, 09 Dec 2012 22:35:23 GMT
I see defaultReadTimeout=-1 in "MessageServlet.java", but when my client does
not specify a readTimeout= parameter on the URL, and there are no messages
on the queue, then my HTTP client actually experiences a timeout of 20
seconds.  Is that a bug?  Am I looking at the wrong code?

That 20 second timeout corresponds to the "maximumReadTimeout = 20000" I see
in "MessageServlet.java".  When is the defaultReadTimeout used?

I assume it is ok for my HTTP client to specify a readTimeout= value of -1. 
It appears to work.  Is -1 always going to be supported?

Thanks,
Stephen Vincent



-----
Stephen Vincent
--
View this message in context: http://activemq.2283324.n4.nabble.com/I-see-defaultReadTimeout-1-in-MessageServlet-java-but-experience-20-secs-tp4660427.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message