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 8F75417287 for ; Fri, 4 Sep 2015 17:52:48 +0000 (UTC) Received: (qmail 25570 invoked by uid 500); 4 Sep 2015 17:52:47 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 25533 invoked by uid 500); 4 Sep 2015 17:52:47 -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 25498 invoked by uid 99); 4 Sep 2015 17:52:47 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2015 17:52:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ED9FC1828C7 for ; Fri, 4 Sep 2015 17:52:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.107 X-Spam-Level: X-Spam-Status: No, score=-0.107 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.006, SPF_HELO_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elyograg.org Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rep0iNMkvsGK for ; Fri, 4 Sep 2015 17:52:35 +0000 (UTC) Received: from frodo.elyograg.org (frodo.elyograg.org [166.70.79.219]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id A199437F21 for ; Fri, 4 Sep 2015 17:52:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id 5C9E3509D for ; Fri, 4 Sep 2015 11:52:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1441389133; bh=jGjTi006F1lSNRJzFIFaBGFEWFHJiaCpKUFNTa9AcUo=; b=T Q9NFed3ukr2zeZpJDzTDe6RJCU0QkHtPsInWdfJjsemXQcsO8TBMtaSmnRuMUWh0 ECpm7Gx6Hiy9cwZbF6wo9VHdDf+5grUYTc4riAuZnDVZvbD/4ll1cJSnGtDNxGNn YJXjJxZ9/6TVEbCW3QDpk+b5qjDM5NXnj9IeMmlR+E= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LBm6FLjxt+SB for ; Fri, 4 Sep 2015 11:52:13 -0600 (MDT) Received: from [10.2.0.108] (client175.mainstreamdata.com [209.63.42.175]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id B2ECE3E04 for ; Fri, 4 Sep 2015 11:52:12 -0600 (MDT) Subject: Re: Getting SocketTimeoutException after a very short amount of time References: <55E3BE59.8070305@elyograg.org> <1441011726.27084.4.camel@apache.org> <55E87BDC.5010402@elyograg.org> <55E89BE9.6060108@elyograg.org> <1441374791.12559.2.camel@apache.org> <55E9D764.8060106@elyograg.org> To: HttpClient User Discussion From: Shawn Heisey X-Enigmail-Draft-Status: N1110 Message-ID: <55E9DA4B.5060406@elyograg.org> Date: Fri, 4 Sep 2015 11:52:11 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55E9D764.8060106@elyograg.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 9/4/2015 11:39 AM, Shawn Heisey wrote: > I must be creating the client objects incorrectly for the "set socket > timeout" message to never be logged. I checked the ClientConfiguration.java example, and found that it sets the socket timeout when it is building the HttpGet object, not the HttpClient object. In my program, I have absolutely no control over the GET/POST requests, that is deep in the bowels of SolrJ. As a committer on Lucene/Solr, I *do* have the ability to change SolrJ, and perhaps these parameters should be configured in our SolrClient object and actually set when the request objects are created, but I think it should be possible to set them on the HttpClient object and have all requests utilize those defaults. Thanks, Shawn --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org