From dev-return-29274-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Tue Nov 1 18:27:54 2011 Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 148A97D65 for ; Tue, 1 Nov 2011 18:27:54 +0000 (UTC) Received: (qmail 52309 invoked by uid 500); 1 Nov 2011 18:27:53 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 52271 invoked by uid 500); 1 Nov 2011 18:27:53 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 52258 invoked by uid 99); 1 Nov 2011 18:27:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 18:27:53 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 18:27:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A359432CC1E for ; Tue, 1 Nov 2011 18:27:32 +0000 (UTC) Date: Tue, 1 Nov 2011 18:27:32 +0000 (UTC) From: "Timothy Bish (Closed) (JIRA)" To: dev@activemq.apache.org Message-ID: <1767954481.46853.1320172052670.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1509049206.9701.1312497807073.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (AMQNET-338) TcpTransport.cs - Close() taking 30 seconds MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQNET-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish closed AMQNET-338. ------------------------------- Resolution: Cannot Reproduce Assignee: Timothy Bish (was: Jim Gomes) Closing this as it appears to be a Mono only issue and is likely resolved by simply using a later version of Mono. If this issue reappears please reopen. > TcpTransport.cs - Close() taking 30 seconds > ------------------------------------------- > > Key: AMQNET-338 > URL: https://issues.apache.org/jira/browse/AMQNET-338 > Project: ActiveMQ .Net > Issue Type: Bug > Components: NMS > Affects Versions: 1.5.1 > Environment: Windows 7, .NET 2.0, Visual Studio 2008, Unity 3.4 > Reporter: Eddie Fast > Assignee: Timothy Bish > > We've been noticing a random freeze on exit for 30 seconds. The frequency is different per machine, but it happens about 10-30% of the time, sometimes more. We've traced it down to TcpTransport.Close(), in this block: > {noformat} > if(null != readThread) > { > if(Thread.CurrentThread != readThread && readThread.IsAlive) > { > if(!readThread.Join((int) MAX_THREAD_WAIT.TotalMilliseconds)) > { > readThread.Abort(); > } > } > readThread = null; > } > {noformat} > We're running this in the Unity game engine, which run C# script in a Mono environment. > I understand that reproducing this on your end would be difficult, but I'm reporting this in the hopes that I can gain some insight why this is happening. > - What thread is this code waiting for? > - What would be some of the causes of the deadlock? > No messages are being sent or received. It's basically starting up and closing down. > Our temporary workaround is to reduce this wait time from 30 seconds to 5 seconds, but I'd like to eventually find a cause. > Thanks -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira