Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ECC8B200B48 for ; Mon, 18 Jul 2016 23:06:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EB49D160A6D; Mon, 18 Jul 2016 21:06:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4021F160A5D for ; Mon, 18 Jul 2016 23:06:22 +0200 (CEST) Received: (qmail 71986 invoked by uid 500); 18 Jul 2016 21:06:20 -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 71953 invoked by uid 99); 18 Jul 2016 21:06:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2016 21:06:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8DA5A2C02A2 for ; Mon, 18 Jul 2016 21:06:20 +0000 (UTC) Date: Mon, 18 Jul 2016 21:06:20 +0000 (UTC) From: "Nhan Thuan Nguyen (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HTTPASYNC-107) Expired SSL connections are not getting closed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 18 Jul 2016 21:06:23 -0000 [ https://issues.apache.org/jira/browse/HTTPASYNC-107?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nhan Thuan Nguyen updated HTTPASYNC-107: ---------------------------------------- Description: We have a case where the far end server returns the HTTP K= eep-Alive response header timeout=3D5 seconds. When a SSL connection on con= nection pool expires, it tries to close the connection by sending an SSL AL= ERT notify to the far end. The server does not respond to the alert and doe= sn't close the connection. Since the connection has a socketTimeout set to = 0 onRelease(), the connection hangs forever. A socket is lost every time th= is occurs. We're eventually running out of ephemeral ports and getting exce= ption Caused by: java.net.BindException: Address already in use. (was: We = have a case where the far end server returns the HTTP Keep-Alive response h= eader 5 seconds. When a SSL connection on connection pool expires, it tries= to close the connection by sending an SSL ALERT notify to the far end. The= server does not respond to the alert and doesn't close the connection. Sin= ce the connection has a socketTimeout set to 0 onRelease(), the connection = hangs forever. A socket is lost every time this occurs. We're eventually ru= nning out of ephemeral ports and getting exception Caused by: java.net.Bind= Exception: Address already in use.) > Expired SSL connections are not getting closed. > ----------------------------------------------- > > Key: HTTPASYNC-107 > URL: https://issues.apache.org/jira/browse/HTTPASYNC-107 > Project: HttpComponents HttpAsyncClient > Issue Type: Bug > Affects Versions: 4.1.1 > Reporter: Nhan Thuan Nguyen > > We have a case where the far end server returns the HTTP Keep-Alive respo= nse header timeout=3D5 seconds. When a SSL connection on connection pool ex= pires, it tries to close the connection by sending an SSL ALERT notify to t= he far end. The server does not respond to the alert and doesn't close the = connection. Since the connection has a socketTimeout set to 0 onRelease(), = the connection hangs forever. A socket is lost every time this occurs. We'r= e eventually running out of ephemeral ports and getting exception Caused by= : java.net.BindException: Address already in use. -- 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