Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-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 139E718ECF for ; Mon, 28 Sep 2015 08:13:05 +0000 (UTC) Received: (qmail 37257 invoked by uid 500); 28 Sep 2015 08:13:05 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 37169 invoked by uid 500); 28 Sep 2015 08:13:04 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 37147 invoked by uid 99); 28 Sep 2015 08:13:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2015 08:13:04 +0000 Date: Mon, 28 Sep 2015 08:13:04 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCORE-409) NIO HttpServer Does Not Shutdown Listener ExecutorService 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/HTTPCORE-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCORE-409. ---------------------------------------- Resolution: Fixed Fix Version/s: 5.0-alpha1 4.4.4 Patch committed to SVN trunk and 4.4.x branch. Oleg > NIO HttpServer Does Not Shutdown Listener ExecutorService > --------------------------------------------------------- > > Key: HTTPCORE-409 > URL: https://issues.apache.org/jira/browse/HTTPCORE-409 > Project: HttpComponents HttpCore > Issue Type: Bug > Components: HttpCore NIO > Affects Versions: 4.4.3 > Reporter: Hiranya Jayathilaka > Fix For: 4.4.4, 5.0-alpha1 > > Attachments: HTTPCORE-409.patch > > > org.apache.http.impl.nio.bootstrap.HttpServer does not shutdown its listenerExecutorService. This causes the following thread to stay alive even after calling shutdown on HttpServer: > "HTTP-listener-8080-1" #11 prio=5 os_prio=31 tid=0x00007fc934887000 nid=0x6c03 waiting on condition [0x0000000120c8d000] > java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x000000076c0697e0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) > at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) > at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) > at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > As a result the applications that use this HttpServer do not exit gracefully. > Note: The blocking HttpServer does shutdown this ExecutorService, and hence the problem only occurs in the NIO HttpServer. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org