Charles Duffy wrote:
Daniel Bareiro wrote:
inet_listen: bind(ipv4,0.0.0.0,5903): Address already in use
inet_listen: FAILED

If you check with netstat, I expect you'll see the port in TIME_WAIT state; if so, this will eventually clean itself up if you just wait a little bit before restarting.

One option to avoid it is to make sure all connections are closed properly on shutdown; another is to set the SO_REUSEADDR flag on the socket before the bind() call.

We set SO_REUSEADDR.

Regards,

Anthony Liguori

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to