瀏覽代碼

dns_server: increase tcp listen backlog.

Nick Peng 1 年之前
父節點
當前提交
5fec5261f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/dns_server.c

+ 1 - 1
src/dns_server.c

@@ -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;
 		}