Re: [PATCH] util: don't set SO_REUSEADDR on client sockets

2024-10-21 Thread Daniel P . Berrangé
On Mon, Oct 21, 2024 at 05:53:17PM +0100, Peter Maydell wrote: > On Mon, 21 Oct 2024 at 15:54, Daniel P. Berrangé wrote: > > > > Setting the SO_REUSEADDR property on a socket allows binding to a port > > number that is in the TIMED_WAIT state. This is usually done on listener > > sockets, to enabl

Re: [PATCH] util: don't set SO_REUSEADDR on client sockets

2024-10-21 Thread Peter Maydell
On Mon, 21 Oct 2024 at 15:54, Daniel P. Berrangé wrote: > > Setting the SO_REUSEADDR property on a socket allows binding to a port > number that is in the TIMED_WAIT state. This is usually done on listener > sockets, to enable a server to restart itself without having to wait for > the completion

Re: [PATCH] util: don't set SO_REUSEADDR on client sockets

2024-10-21 Thread Fabiano Rosas
Daniel P. Berrangé writes: > Setting the SO_REUSEADDR property on a socket allows binding to a port > number that is in the TIMED_WAIT state. This is usually done on listener > sockets, to enable a server to restart itself without having to wait for > the completion of TIMED_WAIT on the port. > >

Re: [PATCH] util: don't set SO_REUSEADDR on client sockets

2024-10-21 Thread Peter Xu
On Mon, Oct 21, 2024 at 03:54:10PM +0100, Daniel P. Berrangé wrote: > Setting the SO_REUSEADDR property on a socket allows binding to a port > number that is in the TIMED_WAIT state. This is usually done on listener > sockets, to enable a server to restart itself without having to wait for > the co

[PATCH] util: don't set SO_REUSEADDR on client sockets

2024-10-21 Thread Daniel P . Berrangé
Setting the SO_REUSEADDR property on a socket allows binding to a port number that is in the TIMED_WAIT state. This is usually done on listener sockets, to enable a server to restart itself without having to wait for the completion of TIMED_WAIT on the port. It is also possible, but highly unusual