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
pull/1/head
sixcooler 13 years ago
parent 864b998a67
commit aeeae75b8a

@ -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

Loading…
Cancel
Save