[Bug 210726] tcp connect() can return invalid EADDRINUSE
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Sep 6 16:45:56 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210726
--- Comment #14 from Bjoern A. Zeeb <bz at FreeBSD.org> ---
Ok,
trying to summarise to get the exact case right as the suggested patch looks
not quite right. There are too many (corner) cases to consider.
two jails, same single IP address.
In each jail a program tries to establish a connection and has bound a local
source address or not, but must not have bound a local port number.
On connect() to a local or remote address and port there may be a case that two
applications in two different jails get an implicit bind to the same local port
number out of which one succeeds and one fails? So one connect call succeeds
and one fails?
It is not yet fully understood if the same could possibly happen between the
base system and a jail, in which case it is assumed that the connect() inside
the jail would be the one always failing?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-net
mailing list