Skip to content

Commit

Permalink
[CBRD-24908] [win] use SOMAXCONN_HINT to obtain actual backlog value (#…
Browse files Browse the repository at this point in the history
…4512)

[win] use SOMAXCONN_HINT for listen backlog
  • Loading branch information
kisoo-han authored Jul 26, 2023
1 parent 15edaae commit 12904ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/broker/broker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,11 @@ init_env (void)
return (-1);
}

#if defined (WINDOWS)
if (listen (sock_fd, SOMAXCONN_HINT (shm_appl->job_queue_size)) < 0)
#else
if (listen (sock_fd, shm_appl->job_queue_size) < 0)
#endif
{
UW_SET_ERROR_CODE (UW_ER_CANT_BIND, 0);
return (-1);
Expand Down

0 comments on commit 12904ec

Please sign in to comment.