Commit a0524ef0 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix busy loop

parent 0e3ae639
......@@ -1397,11 +1397,8 @@ public:
auto fd = accept(fd_, nullptr, nullptr);
#endif // !HAVE_ACCEPT4
if (fd == -1) {
if (errno == EAGAIN || errno == EWOULDBLOCK) {
break;
}
continue;
}
#ifndef HAVE_ACCEPT4
util::make_socket_nonblocking(fd);
#endif // !HAVE_ACCEPT4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment