commit 4f18d89f221f0a373546e7505a75595448faa453
parent 293eb4489d4055d06cd3a1f9d407933ab935b7d6
Author: sin <sin@2f30.org>
Date: Thu, 21 Aug 2014 22:48:09 +0100
No need to do a socket release here
1s is too hardcore and impacts performance.
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/quark.c b/quark.c
@@ -501,9 +501,7 @@ serve(int fd) {
while (running) {
salen = sizeof sa;
if ((req.fd = accept(fd, &sa, &salen)) == -1) {
- /* el cheapo socket release */
- logerrmsg("info\tcannot accept: %s, sleep a second...\n", strerror(errno));
- sleep(1);
+ logerrmsg("info\tcannot accept: %s\n", strerror(errno));
continue;
}
result = fork();