Reading from a closed socket: different behavior between Linux and other operating systems

2019-12-29 Thread Dawid Weiss
Hello, I am a committer to the Apache Lucene project. We have been looking into a problem in which SSL connections were handled differently in tests on different operating systems and narrowed it down to essentially the following scenario (full repro code at [1]): Server side: try (ServerSocke

Re: Reading from a closed socket: different behavior between Linux and other operating systems

2020-01-07 Thread Dawid Weiss
Thank you for your feedback. I can understand how this behavior can be considered platform-dependent but it's still a bit surprising that it shows consistent behavior on everything except Linux... (we originally thought it's Windows to be blamed here). For the SSL layer I implemented a workaround