Unable to bind: Address already in use


I'm new to linux , and getting this message alot while testing and re-running my server.

Unable to bind: Address already in use


"netstat -ltup" shows that my process is killed and nothing else is listening on that port.

I still have to wait a while until I can run my program again. What is happening?
The socket remains open until it times out. The delay is called the "linger time". You need to reduce it from the default 2mins to something small.

Resetting a TCP connection and SO_LINGER
http://deepix.github.io/2016/10/21/tcprst.html
Thanks brother
Topic archived. No new replies allowed.