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 6959111292 for ; Tue, 15 Apr 2014 17:23:16 +0000 (UTC) Received: (qmail 37982 invoked by uid 500); 15 Apr 2014 17:23:15 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 37951 invoked by uid 500); 15 Apr 2014 17:23:15 -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 37938 invoked by uid 99); 15 Apr 2014 17:23:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 17:23:14 +0000 Date: Tue, 15 Apr 2014 17:23:14 +0000 (UTC) From: "Dmitry Potapov (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HTTPCORE-378) AbstractConnPool should perform expired entries clean up outside of lock MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dmitry Potapov created HTTPCORE-378: --------------------------------------- Summary: AbstractConnPool should perform expired entries clean up outside of lock Key: HTTPCORE-378 URL: https://issues.apache.org/jira/browse/HTTPCORE-378 Project: HttpComponents HttpCore Issue Type: Bug Components: HttpCore Affects Versions: 4.3.2 Reporter: Dmitry Potapov Priority: Trivial Currently expired entries are closed at AbstractConnPool.getPoolEntryBlocking:230. If connections have non-zero SO_LINGER enabled this will cause other threads to wait up to SO_LINGER seconds. Unfortunately same reentrant lock is already held by PoolEntryFuture.get(), so list of pool entries to be closed must be accumulated but some external queue and processed by additional thread. There is workaround for this issue for http-clients: apply patches from HTTPCORE-377 and HTTPCLIENT-1497 and set SocketConfig.setSoLinger(0). Since this issue has workaround, I suggest to consider this issue as very low priority one. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org