Commit Graph

2 Commits

Author SHA1 Message Date
Tom Thorogood 94dab88533 Use correct build constraints for listen_*.go files (#750)
unix.SO_REUSEPORT isn't defined for solaris (or some other non-windows
platforms).

Fixes #747
2018-09-26 09:12:54 +01:00
Tom Thorogood e875a31a5c
Add SO_REUSEPORT support (#736)
* Use strings.TrimSuffix in ListenAndServe for TLS

This replaces the if/else statements with something simpler.

Interestingly, the first pull request I submitted to this library was
to fix the tcp6-tls case way back in 4744e915eb.

* Add SO_REUSEPORT implementation

Fixes #654

* Rename Reuseport field to ReusePort

* Rename supportsReuseport to match ReusePort

* Rename listenUDP and listenTCP file to listen_*.go
2018-09-10 20:12:54 +09:30