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
pull/1/head
sixcooler 14 years ago
parent 4fec99115b
commit 169236c6d9

@ -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());
}

Loading…
Cancel
Save