@cryptotaxi247 / netdata-1 / commits / 89033b09a

disable socket port reuse (#16420)

disable port reuse

Ilya Mashchenko committed Nov 15, 2023 at 17:33 UTC 89033b09aa448bb207f5b329f0c66d5365a22ed8
1 file changed +2 -2
libnetdata/socket/socket.c
+2 -2
@@ -303,7 +303,7 @@ int create_listen_socket4(int socktype, const char *ip, uint16_t port, int liste
303 }
304
305 sock_setreuse(sock, 1);
306 - sock_setreuse_port(sock, 1);
306 + sock_setreuse_port(sock, 0);
307 sock_setnonblock(sock);
308 sock_enlarge_in(sock);
309
@@ -348,7 +348,7 @@ int create_listen_socket6(int socktype, uint32_t scope_id, const char *ip, int p
348 }
349
350 sock_setreuse(sock, 1);
351 - sock_setreuse_port(sock, 1);
351 + sock_setreuse_port(sock, 0);
352 sock_setnonblock(sock);
353 sock_enlarge_in(sock);
354