Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 92062 invoked from network); 12 Dec 2007 16:22:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Dec 2007 16:22:29 -0000 Received: (qmail 66924 invoked by uid 500); 12 Dec 2007 16:22:14 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 66872 invoked by uid 500); 12 Dec 2007 16:22:14 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 66861 invoked by uid 99); 12 Dec 2007 16:22:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2007 08:22:14 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [213.191.128.81] (HELO mxout2.iskon.hr) (213.191.128.81) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 12 Dec 2007 16:21:51 +0000 Received: (qmail 27486 invoked from network); 12 Dec 2007 17:21:50 +0100 X-Remote-IP: 213.191.142.122 Received: from unknown (HELO mx.iskon.hr) (213.191.142.122) by mxout2.iskon.hr with SMTP; 12 Dec 2007 17:21:50 +0100 Received: (qmail 24563 invoked from network); 12 Dec 2007 17:21:50 +0100 X-AVScan: ClamAV X-Remote-IP: 89.164.38.247 Received: from 38-247.dsl.iskon.hr (HELO ?192.168.0.168?) (89.164.38.247) by mx.iskon.hr with SMTP; 12 Dec 2007 17:21:50 +0100 Message-ID: <47600A9E.1060700@apache.org> Date: Wed, 12 Dec 2007 17:21:50 +0100 From: Mladen Turk User-Agent: Mozilla MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r603637 - /tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c References: <20071212151033.AB4491A9832@eris.apache.org> <476002AB.507@apache.org> <4760061F.1000803@kippdata.de> In-Reply-To: <4760061F.1000803@kippdata.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Rainer Jung wrote: >> >> Hmm, I'm almost sure this is wrong. >> It makes race condition in threaded servers. >> shutdown is blocking call. >> Any particular reason why you changed that? > > The shutdown is done on the socket belonging to the endpoint, so it is > not in concurrent use (the endpoint got it's socket for private usage > before we called this function). > > So synchronization should not be necessary for the shutdown and thus the > blocking nature of the shutdown is not evil. > Well it wasn't even with the old code (shutdown was outside the lock) You changed the ordering of socket reservation from cache from pre shutdown to post shutdown, but I suppose it should be fine. Reading the patch second time, it might even have more sense to get the socket from cache after the blocking call rather then before, so sorry for the noise ;) Regards, Mladen --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org