Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 12389 invoked from network); 9 Apr 2006 10:45:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Apr 2006 10:45:49 -0000 Received: (qmail 29138 invoked by uid 500); 9 Apr 2006 10:45:49 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 29112 invoked by uid 500); 9 Apr 2006 10:45:49 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 29102 invoked by uid 99); 9 Apr 2006 10:45:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Apr 2006 03:45:48 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO uproxy.gmail.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Apr 2006 03:45:48 -0700 Received: by uproxy.gmail.com with SMTP id m3so448839ugc for ; Sun, 09 Apr 2006 03:45:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E7CoknQzGSM1hhECs4ch9sSYpZe0Xvic0zirZOvofgbVbEFS4uMTgqGCdcH9u48qFEoNw0GhxNkUr5ZzLtl/Oyg6/DtvibZVoEZ1tTKIigvFeb1y0aMvsKV0GkFRvX+qOd9ox4n23dE64NP6L1HZCxYoMLnEG/xm/+sPHninBXo= Received: by 10.78.17.4 with SMTP id 4mr84826huq; Sun, 09 Apr 2006 03:45:27 -0700 (PDT) Received: by 10.78.27.13 with HTTP; Sun, 9 Apr 2006 03:45:27 -0700 (PDT) Message-ID: Date: Sun, 9 Apr 2006 11:45:27 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Can't close connection In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3823888.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Also see maxInactivityDuration http://activemq.org/Configuring+Wire+Formats On 4/9/06, James Strachan wrote: > Creating a session or closing things typically requires blocking > request-response operations on the broker. If you're broker goes down > creating a session could well block for a long time until your socket > actually times out. > > You may want to consider setting a low timeout value on the sockets so > they timeout quickly. On the close of a connection you can also set a > timeout as well. > > http://activemq.org/TCP+Transport+Reference > > James > > On 4/9/06, Wayne1285 wrote: > > > > I am using ActiveMQ-4.0-RC2 and Java 1.5. > > > > I open a connection and then try to get a session, but the session does= not > > get created. (see other postings). In the process of cleaning up after > > detecting that the session is not being returned, I issue a close() to = the > > connection, but that too just hangs, waiting for something, probably th= e > > session be created or timed out. There does not seem to be any way for= me > > to close the connection and therefore end the thread that the connectio= n is > > runing on. > > > > Is this a bug on it's own, or only related to creating a session hangin= g? > > -- > > View this message in context: http://www.nabble.com/Can%27t-close-conne= ction-t1418625.html#a3823888 > > Sent from the ActiveMQ - User forum at Nabble.com. > > > > > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > -- James ------- http://radio.weblogs.com/0112098/