Skip to content
Snippets Groups Projects
Commit 1901254b authored by Peter Gonda's avatar Peter Gonda Committed by GitHub
Browse files

Update tcp_server_utils_posix_common with GPR_ONCE_INIT

Never initializing s_init_max_accept_queue_size could lead to undefined behavior.
parent f787594e
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#define MIN_SAFE_ACCEPT_QUEUE_SIZE 100 #define MIN_SAFE_ACCEPT_QUEUE_SIZE 100
static gpr_once s_init_max_accept_queue_size; static gpr_once s_init_max_accept_queue_size = GPR_ONCE_INIT;
static int s_max_accept_queue_size; static int s_max_accept_queue_size;
/* get max listen queue size on linux */ /* get max listen queue size on linux */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment