DatagramChannel::disconnect appears to rebind socket to the wildcard address

2019-09-25 Thread Alan Bateman
Is this project this active? Are there folks here that work on the xxxBSD ports? JDK-8231259 [1] is a bug submitted against the java.nio.channels.DatagramChannel implementation on macOS a few days ago. It looks like a macOS bug, rather than a JDK bug. The scenario is a UDP socket is bound to

Re: DatagramChannel::disconnect appears to rebind socket to the wildcard address

2019-09-25 Thread Kurt Miller
On Wed, 2019-09-25 at 18:38 +0100, Alan Bateman wrote: > Is this project this active? Are there folks here that work on the  > xxxBSD ports? > > JDK-8231259 [1] is a bug submitted against the  > java.nio.channels.DatagramChannel implementation on macOS a few days  > ago. It looks like a macOS bug,

Re: DatagramChannel::disconnect appears to rebind socket to the wildcard address

2019-09-25 Thread Alan Bateman
On 25/09/2019 19:50, Kurt Miller wrote: : Yes, I have observed that bug on OpenBSD as well. It is indeed a kernel bug on OpenBSD. I have kernel patches to correct it but haven't pushed them forward through the review process there. I just did a quick test on FreeBSD 11 on amd64 and it also doesn

Re: DatagramChannel::disconnect appears to rebind socket to the wildcard address

2019-09-25 Thread Kurt Miller
On Wed, 2019-09-25 at 20:37 +0100, Alan Bateman wrote: > On 25/09/2019 19:50, Kurt Miller wrote: > > > > : > > Yes, I have observed that bug on OpenBSD as well. It is indeed > > a kernel bug on OpenBSD. I have kernel patches to correct it > > but haven't pushed them forward through the review proc

Re: DatagramChannel::disconnect appears to rebind socket to the wildcard address

2019-09-25 Thread Alan Bateman
On 25/09/2019 21:03, Kurt Miller wrote: : Your welcome. It is something simple. Roughly speaking: - set flag when bind on dgram socket sets IP addr - when disconnecting (connect(2) called w/AF_UNSPEC) if flag is set, don't reset it to INADDR_ANY Thanks. One other issue that was found by the s