From 7d87221a8ce52e662ccd53425c4ed85ee320a130 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 4 Jun 2020 15:00:32 +0900 Subject: [PATCH] Fix bug for platform which does not have SOCK_NONBLOCK --- src/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cc b/src/util.cc index d6abdb55..5f84b556 100644 --- a/src/util.cc +++ b/src/util.cc @@ -953,7 +953,7 @@ int create_nonblock_udp_socket(int family) { return -1; } #else // !SOCK_NONBLOCK - auto fd = socket(family, SOCK_STREAM, 0); + auto fd = socket(family, SOCK_DGRAM, 0); if (fd == -1) { return -1;