Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C954991A for ; Sun, 9 Dec 2012 22:36:04 +0000 (UTC) Received: (qmail 28594 invoked by uid 500); 9 Dec 2012 22:36:03 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 28507 invoked by uid 500); 9 Dec 2012 22:36:03 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 28496 invoked by uid 99); 9 Dec 2012 22:36:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Dec 2012 22:36:03 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of stephen.vincent@sas.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Dec 2012 22:35:57 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1ThpT1-00080a-4Q for users@activemq.apache.org; Sun, 09 Dec 2012 14:35:23 -0800 Date: Sun, 9 Dec 2012 14:35:23 -0800 (PST) From: "Steve.V." To: users@activemq.apache.org Message-ID: <1355092522545-4660427.post@n4.nabble.com> Subject: I see defaultReadTimeout=-1 in MessageServlet.java, but experience 20 secs. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.