Found different in behavior of SocketInputStream#read in JDK13
Alan Bateman
Alan.Bateman at oracle.com
Wed Jul 31 23:13:26 UTC 2019
On 31/07/2019 15:58, Chris Hegarty wrote:
> :
>
>
> The change in behaviour comes from the `close` on the server-side
> shutting down the output before closing the socket. When debugging this
> issue the linger value being returned ( on my mac ) is -1, meaning that
> the option is disabled.
>
> I'll need to do some testing on the above patch, but on the face of it
> I believe that `shutdown` should only be called if the linger value is
> positive.
>
shutdown should only be called here if linger is disabled. I suspect the
change in behavior is that it is only done consistently on Windows in
the old SocketImpl, it is done on all platforms in the new impl.
-Alan
More information about the nio-dev
mailing list