From 2fa0988c85d63c61b86390228b0c550fdf0be1aa Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Sun, 25 Oct 2015 18:37:55 +0100 Subject: [PATCH] Increasing socket backlog size in attempt to solve problems like EA-74493 (connection refused) --- .../src/org/jetbrains/kotlin/rmi/NetworkUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rmi/rmi-interface/src/org/jetbrains/kotlin/rmi/NetworkUtils.kt b/compiler/rmi/rmi-interface/src/org/jetbrains/kotlin/rmi/NetworkUtils.kt index 440af4c8206..b2bf4d95bae 100644 --- a/compiler/rmi/rmi-interface/src/org/jetbrains/kotlin/rmi/NetworkUtils.kt +++ b/compiler/rmi/rmi-interface/src/org/jetbrains/kotlin/rmi/NetworkUtils.kt @@ -32,8 +32,8 @@ public object LoopbackNetworkInterface { val IPV4_LOOPBACK_INET_ADDRESS = "127.0.0.1" val IPV6_LOOPBACK_INET_ADDRESS = "::1" - val SERVER_SOCKET_BACKLOG_SIZE = 5 // size of the requests queue for daemon services, so far seems that we don't need any big numbers here - // but if we'll start getting "connection refused" errors, that could be the first place to try to fix it + val SERVER_SOCKET_BACKLOG_SIZE = 10 // size of the requests queue for daemon services, so far seems that we don't need any big numbers here + // but if we'll start getting "connection refused" errors, that could be the first place to try to fix it public val serverLoopbackSocketFactory by lazy { ServerLoopbackSocketFactory() } public val clientLoopbackSocketFactory by lazy { ClientLoopbackSocketFactory() }