Commit a0524ef0 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix busy loop

parent 0e3ae639
...@@ -1397,10 +1397,7 @@ public: ...@@ -1397,10 +1397,7 @@ public:
auto fd = accept(fd_, nullptr, nullptr); auto fd = accept(fd_, nullptr, nullptr);
#endif // !HAVE_ACCEPT4 #endif // !HAVE_ACCEPT4
if (fd == -1) { if (fd == -1) {
if (errno == EAGAIN || errno == EWOULDBLOCK) { break;
break;
}
continue;
} }
#ifndef HAVE_ACCEPT4 #ifndef HAVE_ACCEPT4
util::make_socket_nonblocking(fd); util::make_socket_nonblocking(fd);
......
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