core.sys.posix.sys.socket is missing the SO_REUSEPORT option for linux. # uname -r 2.6.32-43-pve From my linux system headers: /usr/include/asm-generic/socket.h:#define SO_REUSEPORT 15 as well, the SocketOption.REUSEPORT enumeration does not exist in std.socket
@Geod24 created dlang/phobos pull request #8389 "Fix 17416 - Add REUSEPORT to std.socket" fixing this issue: - Fix 17416 - Add REUSEPORT to std.socket The issue also mentions the Druntime bindings, which have been added a few years ago, however this was missing from std.socket. This implementation provides SO_REUSEPORT on Windows as well, despite it being equivalent to SO_REUSEADDR, to simplify client code. https://github.com/dlang/phobos/pull/8389
@0xEAB updated dlang/phobos pull request #9082 "Fix 17416 - Add REUSEPORT to std.socket" fixing this issue: - Fix Bugzilla Issue 17416 - Add REUSEPORT to std.socket The issue also mentions the Druntime bindings, which have been added a few years ago, however this was missing from std.socket. This implementation provides SO_REUSEPORT on Windows as well, despite it being equivalent to SO_REUSEADDR, to simplify client code. Co-authored-by: Elias Batek <desisma@heidel.beer> https://github.com/dlang/phobos/pull/9082
dlang/phobos pull request #9082 "Fix 17416 - Add REUSEPORT to std.socket" was merged into master: - 89550d9e7ac387ffc2b30bdc7c517c18b93599e4 by Geod24: Fix Bugzilla Issue 17416 - Add REUSEPORT to std.socket The issue also mentions the Druntime bindings, which have been added a few years ago, however this was missing from std.socket. This implementation provides SO_REUSEPORT on Windows as well, despite it being equivalent to SO_REUSEADDR, to simplify client code. Co-authored-by: Elias Batek <desisma@heidel.beer> https://github.com/dlang/phobos/pull/9082