1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +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:
Sergey Vojtovich 2017-03-07 15:06:01 +04:00
parent fa137476ff
commit 19629ebf81

View File

@ -2520,6 +2520,12 @@ static MYSQL_SOCKET activate_tcp_port(uint port)
(char*)&arg, sizeof(arg));
}
#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
restarting the server. This happens quite often with the test suite