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 4A511200B16 for ; Mon, 20 Jun 2016 19:57:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 48ECD160A55; Mon, 20 Jun 2016 17:57:48 +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 91FB4160A26 for ; Mon, 20 Jun 2016 19:57:47 +0200 (CEST) Received: (qmail 92465 invoked by uid 500); 20 Jun 2016 17:57:46 -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 92447 invoked by uid 99); 20 Jun 2016 17:57:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2016 17:57:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 90E651A0684 for ; Mon, 20 Jun 2016 17:57:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id s7OkHx7mqrfh for ; Mon, 20 Jun 2016 17:57:43 +0000 (UTC) Received: from mail-it0-f54.google.com (mail-it0-f54.google.com [209.85.214.54]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 464FD5F369 for ; Mon, 20 Jun 2016 17:57:43 +0000 (UTC) Received: by mail-it0-f54.google.com with SMTP id g127so1426168ith.1 for ; Mon, 20 Jun 2016 10:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=b2sQcLyDWbnXYPA2FzIQYQXUZQkY3TJo+HWfNuLWCeI=; b=mmL5pn4rL8SczSHCwh2nU9+NosF9K3KR6yu+FwL6WxWlikfE04BbSuJ7h/hEIybbIi RMyug88AC2pQXEgLT07U0liqQqD+Fn9+f7MygzrXFw8nlShcs8wzn4cfBXzdkA7hgvCR HTUNIUkhrqE9ETEqEOhrH7hzEpHkVDHfgid7OmoYbbiZ/6B/GKFOQzujorl+dW3AmbZJ djTaQzsfDhzy/60iEJBB5dS8dtfcwzpy4Vi+LvYMskFOCV0CCU67BwsG/lUHkOVTOQHO N/bkU+ftOcCcX54E1ysw5k3K1LcXe6S1p0ZQpQmGtYAy7h1CRlUR8920+Rlylo3D/Zcr CLug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=b2sQcLyDWbnXYPA2FzIQYQXUZQkY3TJo+HWfNuLWCeI=; b=CyljuoKisaG1+/zd7u5W63g+cbSwoD+o0UJ19J/zfYjWNPNKxxZvlJTLBEs3I2At/G CmQUIi2fsmSE84PAI56BfsSJdMTHqeuEFmzWLydAwAcMVCXkD/G1jnHY6+AHQrOnFR7f PiyRnCGSITaSQkHshV7AUKJNoKOxN54DmKIWu9Gl+HEM42me7381xWXpVKDev8i+PyNG h7zZ2sLqjRwxuPIG5OMPRPoFEo8HbKon0Jpzg2sTaVDASJnQY0DqogdlHgsDAI1BDqWk yNvxgGotAmM1azsii9kU68IV8XtQAzPDM/NlxG8FocPM6LeC5Z/T2Yka6kZ6sqtpqNST F3vg== X-Gm-Message-State: ALyK8tKDqa3Eq2o9qpB0xlpzh3uCx1WLG54hIlzmfTEGyhZF09ZDG2Ae9Ed/goA/DXu0GzzuUhAAoXVLv2aI3g== X-Received: by 10.36.2.2 with SMTP id 2mr971468itu.34.1466445462350; Mon, 20 Jun 2016 10:57:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.194.230 with HTTP; Mon, 20 Jun 2016 10:57:41 -0700 (PDT) From: Benson Margulies Date: Mon, 20 Jun 2016 13:57:41 -0400 Message-ID: Subject: Telling HC to make new connections all the time To: HttpClient User Discussion Content-Type: text/plain; charset=UTF-8 archived-at: Mon, 20 Jun 2016 17:57:48 -0000 We use the async http components library to connect various components in a system that is deployed, in some cases, on AWS. When it's deployed on AWS, there are ELBs involved. Like some other people, we've having various trauma dealing with the very dynamic environment of AWS ELBs, which includes constant DNS changes and some other issues. So far, we've been making our HC configuration more and more complex. I'm wondering if we should back off and make it simpler -- make a new connection for each request. Obviously, this will be somewhat slower and more expensive, but at the moment we might prefer a slower and more expensive approach that works to one that occasionally gets lost. I appreciate that even making new connections all the time won't compensate for all possible DNS problems -- if Java itself caches a stale name->address translation, making a new connection will fail just as effectively as anything else. Does anyone out there have advice to share (other than running away from ELB)? --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org