SO_REUSEADDR - when should this be used? I thought I understood this socket option before, but now i'm unsure. I read an article talking about how the functionality is different on windows and linux and some people suggesting this should never be used on windows. I initially thought that this was to allow a server to start back up and bind instantly after a crash and not having to wait for the socket that was being listened on to exit TIME_WAIT. I'm currently using windows 10 and have been unable to produce a situation where i'm unable to bind a socket after a server crash. Can anyone give me a scenario on when I should be using SO_REUSEADDR and how to force a situation to occur where its use can be observed? https://ift.tt/eA8V8J
I thought I understood this socket option before, but now i'm unsure. I read an article talking about how the functionality is different on windows and linux and some people suggesting this should never be used on windows. I initially thought that this was to allow a server to start back up and bind instantly after a crash and not having to wait for the socket that was being listened on to exit TIME_WAIT. I'm currently using windows 10 and have been unable to produce a situation where i'm unable to bind a socket after a server crash. Can anyone give me a scenario on when I should be using SO_REUSEADDR and how to force a situation to occur where its use can be observed?
from GameDev.net http://bit.ly/2uMUNBq
from GameDev.net http://bit.ly/2uMUNBq
ليست هناك تعليقات