SO_REUSEADDR
Simone Bordet
simone.bordet at gmail.com
Wed Nov 11 10:14:33 UTC 2020
Hi,
the javadocs for SocketOptions.SO_REUSEADDR states that: "This is used
only for MulticastSockets in java".
However, the javadocs for ServerSocket.setReuseAddress(boolean) goes a
great length explaining a behavior that applies to TCP sockets
(referencing SocketOptions.SO_REUSEADDR).
Similarly, the javadocs for SocketOptions.SO_REUSEPORT states: "This
option enables and disables the ability to have multiple sockets
listen to the same address and port."
This seems to apply to listening sockets only, but then it says that
it is valid for SocketImpl (not ServerSocketImpl).
Can this be clarified?
I did not look much further if there are other inconsistencies, but a
more general review may be needed.
Thanks!
--
Simone Bordet
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless. Victoria Livschitz
More information about the net-dev
mailing list