Problem with half-closure related to connection-reset in Java 11

Norman Maurer norman.maurer at googlemail.com
Fri Jun 1 12:51:42 UTC 2018



> On 1. Jun 2018, at 14:50, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> 
> 
> 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.

Thanks a lot!

> 
> -Alan

Norman



More information about the net-dev mailing list