Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

after frequent occurrences of 100% CPU usages and permanent blockings I try to disable a function in a method that may cause the problem when calling an external library (apache http client 3.x). The thread dump that shows the problem is attached here.

orbiter9e639603e354
diff --git a/source/de/anomic/http/client/Client.java b/source/de/anomic/http/client/Client.java
index 1f332d575..2099c347f 100644
--- a/source/de/anomic/http/client/Client.java
+++ b/source/de/anomic/http/client/Client.java
@@ -343,12 +343,14 @@ public class Client {
parts = new Part[0];
}
RequestEntity data = new MultipartRequestEntity(parts, post.getParams());
+ /*
if (gzipBody) {
data = zipRequest(data);
post.setRequestHeader(HeaderFramework.CONTENT_ENCODING, HeaderFramework.CONTENT_ENCODING_GZIP);
post.setContentChunked(true);
}
+ */
post.setRequestEntity(data);
// redirects in POST cause a "Entity enclosing requests cannot be redirected without user intervention" -
// exception