From aeeae75b8a6803a3a593632f536bb2f51fedd1b9 Mon Sep 17 00:00:00 2001 From: sixcooler Date: Fri, 2 Dec 2011 02:36:03 +0100 Subject: [PATCH] the timeout of httpclient is not absolut, but till a connection is established or between bytes send trying this to reduce count of client-connections to /yacy/search.html of other peers --- source/net/yacy/peers/Protocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/peers/Protocol.java b/source/net/yacy/peers/Protocol.java index 513b06ab0..3c83bdb48 100644 --- a/source/net/yacy/peers/Protocol.java +++ b/source/net/yacy/peers/Protocol.java @@ -708,7 +708,7 @@ public final class Protocol { // resultMap = FileUtils.table(HTTPConnector.getConnector(MultiProtocolURI.yacybotUserAgent).post(new MultiProtocolURI("http://" + hostaddress + "/yacy/search.html"), 60000, hostname, parts)); //resultMap = FileUtils.table(HTTPConnector.getConnector(MultiProtocolURI.crawlerUserAgent).post(new MultiProtocolURI("http://" + target.getClusterAddress() + "/yacy/search.html"), 60000, target.getHexHash() + ".yacyh", parts)); - final HTTPClient httpClient = new HTTPClient(ClientIdentification.getUserAgent(), 60000); + final HTTPClient httpClient = new HTTPClient(ClientIdentification.getUserAgent(), 8000); resultMap = FileUtils.table(httpClient.POSTbytes(new MultiProtocolURI("http://" + hostaddress + "/yacy/search.html"), hostname, parts, false)); // evaluate request result