Skip to content

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

almost revert changes in this class of 7880 and 7882 since MemoryControl does handle negative value requests

sixcooler169236c6d967
diff --git a/source/de/anomic/http/server/HTTPDemon.java b/source/de/anomic/http/server/HTTPDemon.java
index 03a6212c3..0af05df25 100644
--- a/source/de/anomic/http/server/HTTPDemon.java
+++ b/source/de/anomic/http/server/HTTPDemon.java
@@ -816,7 +816,7 @@ public final class HTTPDemon implements serverHandler, Cloneable {
}
// check if we have enough memory
- if (request.getContentLength() > 0 && !MemoryControl.request(request.getContentLength() * 3, false)) {
+ if (!MemoryControl.request(request.getContentLength() * 3, false)) {
throw new IOException("not enough memory available for request. request.getContentLength() = " + request.getContentLength() + ", MemoryControl.available() = " + MemoryControl.available());
}