sbt/main
jamesrayammons 38b613ed34 Fix StdIn from client blocking the server on disconnect
When a thin client (sbtn) is killed while the server is waiting for
stdin input, the server gets stuck forever on `inputBuffer.take` because
no one signals that the client is gone.

Fix by adding a poison pill (`-1` / EOF) to the input buffer during
shutdown so the blocked `take` call returns immediately. Also add an
early-exit check when the channel is already stopped, and handle
`InterruptedException` in `inputStream.read()`.

Fixes sbt/sbt#6841
2026-04-10 01:02:19 +02:00
..
src Fix StdIn from client blocking the server on disconnect 2026-04-10 01:02:19 +02:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00