output/httpd: remove obsolete accept() error check

This commit is contained in:
Max Kellermann 2017-08-10 19:19:53 +02:00
parent 0800d9427c
commit fcfc8bacc0

View File

@ -182,15 +182,11 @@ HttpdOutput::OnAccept(int fd, SocketAddress address, gcc_unused int uid)
const std::lock_guard<Mutex> protect(mutex); const std::lock_guard<Mutex> protect(mutex);
if (fd >= 0) { /* can we allow additional client */
/* can we allow additional client */ if (open && (clients_max == 0 || clients.size() < clients_max))
if (open && (clients_max == 0 || clients.size() < clients_max)) AddClient(fd);
AddClient(fd); else
else close_socket(fd);
close_socket(fd);
} else if (fd < 0 && errno != EINTR) {
LogErrno(httpd_output_domain, "accept() failed");
}
} }
PagePtr PagePtr