BUG/MINOR: threads: Add missing THREAD_LOCAL on static here and there
diff --git a/src/proto_tcp.c b/src/proto_tcp.c
index 200f642..d5345ee 100644
--- a/src/proto_tcp.c
+++ b/src/proto_tcp.c
@@ -116,8 +116,8 @@
/* Default TCP parameters, got by opening a temporary TCP socket. */
#ifdef TCP_MAXSEG
-static int default_tcp_maxseg = -1;
-static int default_tcp6_maxseg = -1;
+static THREAD_LOCAL int default_tcp_maxseg = -1;
+static THREAD_LOCAL int default_tcp6_maxseg = -1;
#endif
/* Binds ipv4/ipv6 address <local> to socket <fd>, unless <flags> is set, in which
@@ -138,8 +138,8 @@
struct sockaddr_storage bind_addr;
int foreign_ok = 0;
int ret;
- static int ip_transp_working = 1;
- static int ip6_transp_working = 1;
+ static THREAD_LOCAL int ip_transp_working = 1;
+ static THREAD_LOCAL int ip6_transp_working = 1;
switch (local->ss_family) {
case AF_INET:
@@ -433,7 +433,7 @@
}
else {
#ifdef IP_BIND_ADDRESS_NO_PORT
- static int bind_address_no_port = 1;
+ static THREAD_LOCAL int bind_address_no_port = 1;
setsockopt(fd, SOL_IP, IP_BIND_ADDRESS_NO_PORT, (const void *) &bind_address_no_port, sizeof(int));
#endif
ret = tcp_bind_socket(fd, flags, &src->source_addr, &conn->addr.from);