No need to do a socket release here
1s is too hardcore and impacts performance.
This commit is contained in:
parent
293eb4489d
commit
4f18d89f22
1 changed files with 1 additions and 3 deletions
4
quark.c
4
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();
|
||||
|
|
Loading…
Reference in a new issue