Closed godofdream closed 7 years ago
Some infos about it: https://github.com/valyala/fasthttp/blob/master/reuseport/reuseport.go https://github.com/valyala/tcplisten
This is only meant to run on Linux/BSD distros? macOS runs POSIX certified BSD core with a custom kernel, but when I turn this feature on (as a test), the server just stops instantly without an error or prompt.
For now yes, with all the features its possible. Like the original source for this feature.
Von meinem iPhone gesendet
Am 08.07.2017 um 16:54 schrieb Allendar notifications@github.com:
This is only meant to run on Linux/BSD distros? macOS runs POSIX certified BSD core with a custom kernel, but when I turn this feature on (as a test), the server just stops instantly without an error or prompt.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.
Would there be an explanation for the server instantly shutting down without warnings on macOS? Maybe it's an interpretal thing, or a bug?
Look into go-siris/tcplistener when you find there a bug or something... let me know i dont see any known bugs there.
On macOS it says it's tcp
and thus makes it panic. Would that be a legit alias for tcp4
or is that not safe enough?
Update: If I temporarly alias tcp
to tcp4
everything seems to run well. But as I don't have much knowledge of the internal workings, I'm not sure that is the safest way.
Damn, you are right. There is a aliase needed.
The Portlistener can be enhanced. Fasthttp can use something called "reuse_port" We should implement it