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 3FF19101CE for ; Mon, 31 Mar 2014 16:31:21 +0000 (UTC) Received: (qmail 40187 invoked by uid 500); 31 Mar 2014 16:31:18 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 39932 invoked by uid 500); 31 Mar 2014 16:31:17 -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 39908 invoked by uid 99); 31 Mar 2014 16:31:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2014 16:31:16 +0000 Date: Mon, 31 Mar 2014 16:31:16 +0000 (UTC) From: "Matt Inger (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1492) "TimeToLive" for connection pooling not settable via HttpClientBuilder 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/HTTPCLIENT-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955354#comment-13955354 ] Matt Inger commented on HTTPCLIENT-1492: ---------------------------------------- FYI: The diff is created off the 4.3.x branch of httpclient. > "TimeToLive" for connection pooling not settable via HttpClientBuilder > ---------------------------------------------------------------------- > > Key: HTTPCLIENT-1492 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1492 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpClient > Affects Versions: 4.3.3 > Reporter: Matt Inger > Fix For: 4.4 Alpha1 > > Attachments: HttpClientBuilder-connTTL.diff > > > The "timeToLive" property for connection pools is not settable via HttpClientBuilder, nor is it settable on the PoolingConnectionManager at any time other than construction. As such, setting this attribute requires that you deliberately create your own PoolingConnectionManager, which includes any SSLSocketFactory creation, etc.... > This vastly complicates the process of creating pooled connections with a time to live setting of anything other than -1 (no expiration, which is the default, and what ends up getting used by HttpClientBulder). > I'm requesting that HttpClientBuilder provide a way to set this property. -- 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