[2.x] Use JDK's Unix domain socket for bootserver (#9427)

Use JDK's Unix domain socket for bootserver.
This commit is contained in:
eugene yokota
2026-07-22 23:57:13 -04:00
committed by GitHub
parent 4b3fc911a7
commit 3f073b0059
9 changed files with 135 additions and 117 deletions
+1 -1
View File
@@ -402,7 +402,7 @@ object Defaults extends BuildCommon with DefExtra {
},
serverHandlers :== Nil,
windowsServerSecurityLevel := Win32SecurityLevel.OWNER_DACL, // allows any owner logon session to access the server
serverUseJni := BootServerSocket.requiresJNI || SysProp.serverUseJni,
serverUseJni := SysProp.serverUseJni,
fullServerHandlers := Nil,
insideCI :== sys.env.contains("BUILD_NUMBER") ||
sys.env.contains("CI") || SysProp.ci,
+4 -3
View File
@@ -160,7 +160,7 @@ private[sbt] object xMain:
def liveServerDetected: Boolean =
BootServerSocketProbe.liveServerDetected(
BootServerSocket.socketLocation(base, hash),
BootServerSocket.requiresJNI() || SysProp.serverUseJni,
SysProp.serverUseJni,
)
try Some(new BootServerSocket(configuration, hash)) -> None
catch {
@@ -183,8 +183,9 @@ private[sbt] object xMain:
)
(None, Some(Exit(2)))
}
case _: IOException => (None, None)
case _: UnsatisfiedLinkError => (None, None)
case _: IOException => (None, None)
case _: UnsatisfiedLinkError => (None, None)
case _: UnsupportedOperationException => (None, None)
}
}
end xMain