Bug 17416 – SocketOption.REUSEPORT not available on linux

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2017-05-21T22:21:09Z
Last change time
2024-11-04T04:09:54Z
Keywords
pull
Assigned to
No Owner
Creator
Kevin

Comments

Comment #0 by kevin — 2017-05-21T22:21:09Z
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
Comment #1 by dlang-bot — 2022-02-20T19:08:07Z
@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
Comment #2 by dlang-bot — 2024-11-04T03:30:25Z
@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 <[email protected]> https://github.com/dlang/phobos/pull/9082
Comment #3 by dlang-bot — 2024-11-04T04:09:54Z
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 <[email protected]> https://github.com/dlang/phobos/pull/9082