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

Simone Bordet simone.bordet at gmail.com
Tue Jan 7 08:34:13 UTC 2020


Hi,

On Mon, Jan 6, 2020 at 5:39 PM Chris Hegarty <chris.hegarty at oracle.com> wrote:
>     // force RST
>     clientChannel.setOption(StandardSocketOptions.SO_LINGER, 0);

Just want to point out that when the channel/socket is set in
non-blocking mode, SO_LINGER is either not supported or gives
undefined behavior or throws (on Windows).

-- 
Simone Bordet
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz


More information about the security-dev mailing list