Commit 19629ebf authored by Sergey Vojtovich's avatar Sergey Vojtovich

MDEV-10646 - System Unit File After network-online

Bind to an address even if it is not yet configured.
parent fa137476
...@@ -2520,6 +2520,12 @@ static MYSQL_SOCKET activate_tcp_port(uint port) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment