Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9939618CA1 for ; Sat, 2 Jan 2016 17:12:15 +0000 (UTC) Received: (qmail 40391 invoked by uid 500); 2 Jan 2016 17:12:15 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 40344 invoked by uid 500); 2 Jan 2016 17:12:15 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 40333 invoked by uid 99); 2 Jan 2016 17:12:15 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jan 2016 17:12:15 +0000 Received: from ok2c (84.76.106.92.dynamic.wline.res.cust.swisscom.ch [92.106.76.84]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 657AF1A0379 for ; Sat, 2 Jan 2016 17:12:14 +0000 (UTC) Message-ID: <1451754729.25084.11.camel@apache.org> Subject: Re: Timeout on request with AsyncClient? From: Oleg Kalnichevski To: HttpClient User Discussion Date: Sat, 02 Jan 2016 18:12:09 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit On Fri, 2016-01-01 at 16:04 -0500, Benson Margulies wrote: > I've spent some time reading the code, and I'm stumped as to how to > arrange for a timeout on getting a response back with the async > client. I see how to configure the connect timeout with RequestConfig. > I'm on 4.4.1. I'm using callbacks, not the returned futures, so it > would be some coding to make my own arrangements. > Hi Benson Should not RequestConfig#socketTimeout be what you want? Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org