1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-07 09:20:27 +08:00
This commit is contained in:
源文雨
2022-10-26 17:18:08 +08:00
parent ab236ac76e
commit cf5df209b4

View File

@@ -351,12 +351,12 @@ static int handle_accept(threadtimer_t* p) {
}
if((p)->numbytes <= 0) {
perror("recv");
if(errno == EAGAIN) {
if(errno == EAGAIN || errno == EINVAL) {
if(!++(p)->again_cnt) {
r = 0;
puts("Max EAGAIN cnt exceeded");
puts("Max EAGAIN/EINVAL cnt exceeded");
}
} else if(errno != EINVAL) r = 0;
} else r = 0;
}
printf("Recv finished, continune: %s\n", r?"true":"false");
return r;