sudha kar wrote: > Hi Namita, > > Thanks for the response. My server is running on Firmware (Storage Box), so > I don't have chance to debug (like netstat). I am already using > 'SO_REUSEPORT', but it didn't solved my problem. Is there any difference > between 'SO_REUSEADDR'. and 'SO_REUSEPORT'. >
The difference between SO_REUSEPORT and SO_REUSEADDR is as follows: SO_REUSEADDR will allow a server to bind to a port that is in TIME_WAIT state, but not in use by a running server. However, SO_REUSEPORT allows multiple (running) servers to bind to the same port (if all of them have used SO_REUSEPORT). So ideally, your problem should have got solved with SO_REUSEPORT too. Not sure why it did not (maybe because of the state the port is in). Anyway, as I mentioned earlier it would be good gracefully exit your server than kill it. That will surely solve your problem. Let us know how it goes. Namita

