Skip to content

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

reduced httpd final waiting time

orbitercb38e5762297
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.java
index 0a5a76ca2..92a8c12d2 100644
--- a/source/de/anomic/http/httpdFileHandler.java
+++ b/source/de/anomic/http/httpdFileHandler.java
@@ -969,7 +969,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
try {out.flush();}catch (Exception e) {}
if (((String)requestHeader.get(httpHeader.CONNECTION, "close")).indexOf("keep-alive") == -1) {
// wait a little time until everything closes so that clients can read from the streams/sockets
- try {Thread.sleep(1000);} catch (InterruptedException e) {}
+ try {Thread.sleep(200);} catch (InterruptedException e) {}
}
}
}