From fcfc8bacc008ce04aa75e50cb33825648bba917f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Aug 2017 19:19:53 +0200 Subject: [PATCH] output/httpd: remove obsolete accept() error check --- src/output/plugins/httpd/HttpdOutputPlugin.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/output/plugins/httpd/HttpdOutputPlugin.cxx b/src/output/plugins/httpd/HttpdOutputPlugin.cxx index 07e5cb3fb..ff16e5416 100644 --- a/src/output/plugins/httpd/HttpdOutputPlugin.cxx +++ b/src/output/plugins/httpd/HttpdOutputPlugin.cxx @@ -182,15 +182,11 @@ HttpdOutput::OnAccept(int fd, SocketAddress address, gcc_unused int uid) const std::lock_guard protect(mutex); - if (fd >= 0) { - /* can we allow additional client */ - if (open && (clients_max == 0 || clients.size() < clients_max)) - AddClient(fd); - else - close_socket(fd); - } else if (fd < 0 && errno != EINTR) { - LogErrno(httpd_output_domain, "accept() failed"); - } + /* can we allow additional client */ + if (open && (clients_max == 0 || clients.size() < clients_max)) + AddClient(fd); + else + close_socket(fd); } PagePtr