increase socket timeout

The old value of 2ms lead to 45% load for a single core
This commit is contained in:
2023-03-12 11:04:27 +01:00
parent dafe6813ed
commit c9758adbef

View File

@@ -90,7 +90,7 @@ public class TcpIngestor implements Ingestor, AutoCloseable, DisposableBean {
port = serverSocket.getLocalPort();
LOGGER.info("listening on port " + serverSocket.getLocalPort());
serverSocket.setSoTimeout((int) TimeUnit.MILLISECONDS.toMillis(2));
serverSocket.setSoTimeout((int) TimeUnit.MILLISECONDS.toMillis(100));
started.countDown(); // notify caller that the socket is now listening
while (acceptNewConnections.get()) {