On 01/06/2018 13:19, Florian Weimer wrote:
But there is a race, even on Linux. If the network is fast enough and
you get an RST segment from the other end, kernel the receive buffer
is discarded.
Right although it can be a bit more predictable with loopback connections.
So whatever you do on the JDK side, it's probably papering over an
application bug that does not show up on some networks by sheer luck.
All we're doing on the JDK code is removing JDK 1.4 era code that
attempted to deal with the Solaris specific behavior. Once we more of
that then the JDK behavior will just reflect whatever the platform does.
-Alan