Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Andreas Leitgeb Newsgroups: comp.lang.java.programmer Subject: Re: server-side Socket does not recognize broken connection. Date: Thu, 30 Jan 2020 15:22:03 -0000 (UTC) Organization: A noiseless patient Spider Lines: 8 Message-ID: References: <1v9ncmqz4ep4j$.1mdftm8twalol$.dlg@40tude.net> Reply-To: avl@logic.at Injection-Date: Thu, 30 Jan 2020 15:22:03 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="83f7452caebcd8eae68324d32d69f860"; logging-data="26431"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VdNwjdeStpdM7kgjsz6Pg" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:48KRlurBzWc/AgES/aiWzFodL9o= Xref: csiph.com comp.lang.java.programmer:39283 Eric Douglas wrote: > The Socket class also has setSoTimeout, so this can be called from client and/or server. Yes, thanks. The solution I ended up with uses exactly that. If really curious, look at https://github.com/mabe02/lanterna/pull/435 (the PR is merged and working fine)