mirror of
https://github.com/MariaDB/server.git
synced 2025-06-03 07:02:23 +03:00
MDEV-10646 - System Unit File After network-online
Bind to an address even if it is not yet configured.
This commit is contained in:
parent
fa137476ff
commit
19629ebf81
@ -2520,6 +2520,12 @@ static MYSQL_SOCKET activate_tcp_port(uint port)
|
|||||||
(char*)&arg, sizeof(arg));
|
(char*)&arg, sizeof(arg));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef IP_FREEBIND
|
||||||
|
arg= 1;
|
||||||
|
(void) mysql_socket_setsockopt(ip_sock, IPPROTO_IP, IP_FREEBIND, (char*) &arg,
|
||||||
|
sizeof(arg));
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
Sometimes the port is not released fast enough when stopping and
|
Sometimes the port is not released fast enough when stopping and
|
||||||
restarting the server. This happens quite often with the test suite
|
restarting the server. This happens quite often with the test suite
|
||||||
|
Loading…
x
Reference in New Issue
Block a user