Skip to content
This repository

No ReusePort in network-2.3.0.2 #7

Open
tibbe opened this Issue April 05, 2011 · 4 comments

3 participants

Johan Tibell Ben Millwood Iku Iwasa
Johan Tibell
Owner
tibbe commented April 05, 2011

ppavel reports that "network-2.3.0.2 coming with haskell platform 2011.2.0.0 does not have ReusePort? constructor in SocketOption? type under windows".

Johan Tibell
Owner
tibbe commented April 05, 2011

We conditionally export ReuseAddr and apparently autoconf doesn't detect SO_REUSEADDR support on your platform. Not sure why.

#ifdef SO_REUSEADDR
    | ReuseAddr {- SO_REUSEADDR -}
#endif
Ben Millwood

This exact error won't happen anymore. It would still be concerning if some socket options were not detected, though.

Johan Tibell
Owner

I need someone with a Windows machine to investigate this.

Iku Iwasa

It seems SO_REUSEPORT does not exist in WinSock.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms740476%28v=vs.85%29.aspx

With network-2.4.1.2 of HaskellPlatform-2013.2.0.0

Prelude Network.Socket> isSupportedSocketOption ReuseAddr
True
Prelude Network.Socket> isSupportedSocketOption ReusePort
False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.