Commit Graph

5 Commits

Author SHA1 Message Date
Steven Allen
1fdf8e59b2 check for reuseport support by opening a socket, not listening.
This ensures that, even if we can't bind to a random port on localhost for some
reason, we can still correctly detect if reuse port is supported.

Thanks to @Coderlane for suggesting this fix.

fixes #24
2018-01-28 23:19:36 -08:00
Steven Allen
6f419f06a2 cleanup the available function on unix
fixes #3

(all credit goes to @tv42)
2017-11-08 20:39:56 -08:00
Steven Allen
e570a4491d switch to golang.org/x/sys
fixes #22
2017-10-25 01:01:20 -07:00
Henry
5419437ebe _compiles_ on windows 2015-03-19 10:22:25 +01:00
Juan Batiz-Benet
a2e454f12a check if sockopt is avail 2015-01-20 19:32:37 -08:00