No need to do a socket release here

1s is too hardcore and impacts performance.
This commit is contained in:
sin 2014-08-21 22:48:09 +01:00 committed by FRIGN
parent 293eb4489d
commit 4f18d89f22

View file

@ -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();