From 169236c6d9676fd2ea541c6a9588151f26e86789 Mon Sep 17 00:00:00 2001 From: sixcooler Date: Mon, 22 Aug 2011 17:58:23 +0000 Subject: [PATCH] almost revert changes in this class of 7880 and 7882 since MemoryControl does handle negative value requests git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7887 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/server/HTTPDemon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }