mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Always include socket rebinding code
This commit is contained in:
parent
3f34fc921c
commit
d8157097b4
1 changed files with 3 additions and 2 deletions
|
@ -146,10 +146,11 @@
|
|||
* EADDRINUSE.
|
||||
* 2) If so, it will close the appropriate old listener connection and
|
||||
* 3) Attempts bind()'ing the new listener socket again.
|
||||
*
|
||||
* Just to be safe, we are enabling listener rebind code on all platforms,
|
||||
* to account for unexpected cases where it may be needed.
|
||||
*/
|
||||
#if defined(__linux__) || defined(_WIN32)
|
||||
#define ENABLE_LISTENER_REBIND
|
||||
#endif
|
||||
|
||||
static connection_t *connection_listener_new(
|
||||
const struct sockaddr *listensockaddr,
|
||||
|
|
Loading…
Add table
Reference in a new issue