Skip to content

Commit

Permalink
dns_server: increase tcp listen backlog.
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Jan 16, 2024
1 parent 1a3e826 commit 5fec526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -8067,7 +8067,7 @@ static int _dns_create_socket(const char *host_ip, int type)
}

if (type == SOCK_STREAM) {
if (listen(fd, 16) != 0) {
if (listen(fd, 256) != 0) {
tlog(TLOG_ERROR, "listen failed.\n");
goto errout;
}
Expand Down

0 comments on commit 5fec526

Please sign in to comment.