DatagramChannel::disconnect appears to rebind socket to the wildcard address
Alan Bateman
Alan.Bateman at oracle.com
Wed Sep 25 19:37:41 UTC 2019
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't retain the bound address.
>
Thanks for confirming the issue on OpenBSD and also checking FreeBSD
too. I'm curious if the issue in the OpenBSD kernel is something simple
or whether this is a significant change. My guess is that this is an
issue that could have lurked for years as not many applications or
usages would observe the local address changing like this.
-Alan
More information about the bsd-port-dev
mailing list