reinstate old timeout values for transferRWI and transferURL

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4903 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 17 years ago
parent 3330181aa0
commit 75b4a5ced4

@ -966,7 +966,7 @@ public final class yacyClient {
post.add(new StringPart("entryc", Integer.toString(indexcount))); post.add(new StringPart("entryc", Integer.toString(indexcount)));
post.add(new StringPart("indexes", entrypost.toString())); post.add(new StringPart("indexes", entrypost.toString()));
try { try {
final byte[] content = wput("http://" + address + "/yacy/transferRWI.html", targetSeed.getHexHash() + ".yacyh", post, gzipBody); final byte[] content = wput("http://" + address + "/yacy/transferRWI.html", targetSeed.getHexHash() + ".yacyh", post, timeout, gzipBody);
final ArrayList<String> v = nxTools.strings(content, "UTF-8"); final ArrayList<String> v = nxTools.strings(content, "UTF-8");
// this should return a list of urlhashes that are unknown // this should return a list of urlhashes that are unknown
if ((v != null) && (v.size() > 0)) { if ((v != null) && (v.size() > 0)) {
@ -1012,7 +1012,7 @@ public final class yacyClient {
} }
post.add(new StringPart("urlc", Integer.toString(urlc))); post.add(new StringPart("urlc", Integer.toString(urlc)));
try { try {
final byte[] content = wput("http://" + address + "/yacy/transferURL.html", targetSeed.getHexHash() + ".yacyh", post, gzipBody); final byte[] content = wput("http://" + address + "/yacy/transferURL.html", targetSeed.getHexHash() + ".yacyh", post, timeout, gzipBody);
final ArrayList<String> v = nxTools.strings(content, "UTF-8"); final ArrayList<String> v = nxTools.strings(content, "UTF-8");
if ((v != null) && (v.size() > 0)) { if ((v != null) && (v.size() > 0)) {

Loading…
Cancel
Save