Thread overview
Socket missing option: SO_REUSEPORT
Dec 21, 2016
Benjiro
Dec 21, 2016
Madaz Hill
Dec 21, 2016
Damian
May 21, 2017
Kevin Brogan
December 21, 2016
Just check the socket code and there is a small feature missing:

>enum SocketOption: int
>{
>    DEBUG =                SO_DEBUG,            /// Record debugging information
>    BROADCAST =            SO_BROADCAST,        /// Allow transmission of broadcast messages
>    REUSEADDR =            SO_REUSEADDR,        /// Allow local reuse of address


There needs to be added:

>    REUSEPORT =            SO_REUSEPORT,        /// Allow local reuse of the port


I don't think this needs weeks of discussion ;)
December 21, 2016
On Wednesday, 21 December 2016 at 13:01:53 UTC, Benjiro wrote:
> I don't think this needs weeks of discussion ;)

No discussion needed at all. You could simply file an issue here: https://issues.dlang.org/, or submit a PR.


December 21, 2016
On Wednesday, 21 December 2016 at 13:01:53 UTC, Benjiro wrote:
> Just check the socket code and there is a small feature missing:
>
>>enum SocketOption: int
>>{
>>    DEBUG =                SO_DEBUG,            /// Record debugging information
>>    BROADCAST =            SO_BROADCAST,        /// Allow transmission of broadcast messages
>>    REUSEADDR =            SO_REUSEADDR,        /// Allow local reuse of address
>
>
> There needs to be added:
>
>>    REUSEPORT =            SO_REUSEPORT,        /// Allow local reuse of the port
>
>
> I don't think this needs weeks of discussion ;)

SO_REUSEPORT is not supported on Windows.

May 21, 2017
On Wednesday, 21 December 2016 at 16:49:53 UTC, Damian wrote:
> SO_REUSEPORT is not supported on Windows.

Is is supported on linux. On Windows the behavior of SO_REUSEPORT is included in SO_REUSEADDR.

I submitted an issue to get this fixed for Linux.

https://issues.dlang.org/show_bug.cgi?id=17416