Closed NRicode closed 1 year ago
setReuseAddr is a public method anyway, is there a specific reason you want it turned on by default instead of being opt-in? I did have a look at major web servers and they all seem to use SO_REUSEADDR so maybe it's not such a bad idea.
setReuseAddr is a public method anyway, is there a specific reason you want it turned on by default instead of being opt-in? I did have a look at major web servers and they all seem to use SO_REUSEADDR so maybe it's not such a bad idea.
wait, is it really public? iirc it wasn't. Even though if it was public, I still think the default value should be true. Not everyone is familiar with low level socket and it wasted so much of my time trying to debug this because the server simply won't start when I restart my application and I believe other people struggled with this aswell especially people who aren't familiar with low level socket.
allow server to be restarted instantly when application is restarted