1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-05 08:20:29 +08:00
This commit is contained in:
源文雨
2022-10-26 16:41:23 +08:00
parent 2d50752c6a
commit a8dd86cd2e

View File

@@ -343,7 +343,10 @@ static int handle_accept(threadtimer_t* p) {
if((p)->numbytes <= 0) break;
if(!(r = check_buffer((p)))) break;
}
r &= (p)->numbytes >= 0 || errno == EWOULDBLOCK;
if((p)->numbytes <= 0) {
perror("recv");
r = r && errno == EWOULDBLOCK;
}
printf("Recv finished, continune: %s\n", r?"true":"false");
return r;
}