From c1dcc8c4566c36c7eebc4e14e8d55c832400f53b Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 29 Mar 2015 07:12:23 +0200 Subject: [PATCH] fix display and limit of max server connections after startup (on restart value returned to default=50) This has no effect on Jetty but the limit is still respected. --- source/net/yacy/yacy.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/yacy/yacy.java b/source/net/yacy/yacy.java index 5370f0499..b823366c3 100644 --- a/source/net/yacy/yacy.java +++ b/source/net/yacy/yacy.java @@ -63,6 +63,7 @@ import com.google.common.io.Files; import net.yacy.cora.document.id.DigestURL; import net.yacy.cora.federate.yacy.CacheStrategy; import net.yacy.cora.order.Digest; +import net.yacy.cora.protocol.ConnectionInfo; import net.yacy.crawler.retrieval.Response; import net.yacy.server.serverSwitch; @@ -299,6 +300,9 @@ public final class yacy { httpServer = new Jetty9HttpServerImpl(port); httpServer.startupServer(); sb.setHttpServer(httpServer); + // TODO: this has no effect on Jetty (but needed to reflect configured value and limit is still used) + ConnectionInfo.setServerMaxcount(sb.getConfigInt("connectionsMax", ConnectionInfo.getMaxcount())); + ConcurrentLog.info("STARTUP",httpServer.getVersion()); // open the browser window