Return-Path: Delivered-To: apmail-jakarta-avalon-dev-archive@jakarta.apache.org Received: (qmail 46178 invoked by uid 500); 6 Sep 2001 16:04:54 -0000 Mailing-List: contact avalon-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Avalon Development" Delivered-To: mailing list avalon-dev@jakarta.apache.org Received: (qmail 46158 invoked from network); 6 Sep 2001 16:04:54 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Peter Donald Reply-To: donaldp@apache.org To: "Avalon Development" Subject: Re: I finally got around to messing with Phoenix Date: Fri, 7 Sep 2001 01:57:58 +1000 X-Mailer: KMail [version 1.3.1] References: <3B979294.837BD37C@apache.org> In-Reply-To: <3B979294.837BD37C@apache.org> X-Wisdom-Cookie: . MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20010906160449.ZZKM4715.mss.rdc2.nsw.optushome.com.au@there> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 7 Sep 2001 01:13, Berin Loritsch wrote: > There is a problem with a runaway thread in Phoenix or Cornerstone. > I think the problem was with the connection server. During the > semi-clean shutdown, the console locked up on me and the last message > in the logs was: > > Thu Sep 06 11:07:17 EDT 2001 [INFO ] > <> (): Processing Block: sockets. Thu > Sep 06 11:07:17 EDT 2001 [INFO ] <> > (): Ran Shutdown Phase for sockets. Thu Sep 06 11:07:17 EDT 2001 [INFO ] > <> (): Processing Block: connections. > > (here it stopped). > > > I can't remember what I did to set it off (could be typing a bunch of stuff > in XCommander after connecting through telnet). It is an inconsistency between unix JVM and windows JVM on how they implement ServerSocket.accept(). In unix if the thread is interupted then accept() will throw an IOException while this is not so on windows. The workaround is to do something like m_serverSocket.setSoTimeout( 500 ); before the loop. -- Cheers, Pete --------------------------------------------------------- Clarke's Third Law: "Any technology distinguishable from magic is insufficiently advanced". --------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: avalon-dev-help@jakarta.apache.org