Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 39763 invoked from network); 15 Nov 2007 18:30:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2007 18:30:26 -0000 Received: (qmail 42162 invoked by uid 500); 15 Nov 2007 18:30:13 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 42134 invoked by uid 500); 15 Nov 2007 18:30:13 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 42125 invoked by uid 99); 15 Nov 2007 18:30:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 10:30:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@iona.com designates 62.221.12.55 as permitted sender) Received: from [62.221.12.55] (HELO emea-mx1.iona.com) (62.221.12.55) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 18:30:02 +0000 X-IronPort-AV: E=Sophos;i="4.21,421,1188774000"; d="scan'208";a="955040" Received: from emea-ems1.ionaglobal.com ([10.2.1.125]) by emea-mx1.iona.com with ESMTP; 15 Nov 2007 18:29:54 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: shouldDestroyPort in JettyHTTPServerEngine and org.apache.cxf.transports.http_jetty.DontClosePort Date: Thu, 15 Nov 2007 18:29:53 -0000 Message-ID: <1D195F515BDFE04EA40FA8D046308D6A03048A@emea-ems1.IONAGLOBAL.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: shouldDestroyPort in JettyHTTPServerEngine and org.apache.cxf.transports.http_jetty.DontClosePort Thread-Index: AcgntYTDs5bcP5iyT+6nK/RAMDJ52g== From: "Tully, Gary" To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, There is a comment in the source[1] in shouldDestroyPort, included below. I found the ..DontClosePort system property useful in a little test that serially used the same bus with a shutdown in between. Bus bus =3D .. doJaxwsClientServerWork(); bus.shutdown() bus =3D .. doJaxwsClientServerWork(); bus.shutdown() Setting the property to ensure that we don't call into jetty on shutdown makes the test work, without it the second call to doJaxwsClientServerWork() will hang and eventually timeout with a socket read error. Do we have any more information on this issue other than what is suggested in the comment. Do we fully understand the problem? I am wondering if we need to ensure client proxies close off their connections on shutdown or if there is a low level tcp option to reduce the wait time on a half closed socket or if we should be disabling keep-alive if we are in a single JVM scenario. I am thinking that the test case is a little too 'testy' to be worth worrying about but I imagine that in a well used container environment where there are refreshes going on this is likely to bite us and if the only option is to globally stop asking jetty to do shutdown we will be in trouble when we 'really' want to shutdown. Thanks in advance, Gary. The comment: //if we shutdown the port, on SOME OS's/JVM's, if a client=20 //in the same jvm had been talking to it at some point and keep alives=20 //are on, then the port is held open for about 60 seconds=20 //afterword and if we restart, connections will then=20 //get sent into the old stuff where there are=20 //no longer any servant registered. They pretty much just hang.=20 =20 //this is most often seen in our unit/system tests that=20 //test things in the same VM.=20 [1] http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http-jett y/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngin e=2Ejava?view=3Ddiff&r1=3D581340&r2=3D581341=20 =20 ---------------------------- IONA Technologies PLC (registered in Ireland) Registered Number: 171387 Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland