mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-17 08:26:08 -04:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user