mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-05 00:10:29 +08:00
fix
This commit is contained in:
3
server.c
3
server.c
@@ -343,8 +343,9 @@ static int handle_accept(threadtimer_t* p) {
|
||||
if((p)->numbytes <= 0) break;
|
||||
if(!(r = check_buffer((p)))) break;
|
||||
}
|
||||
r &= (p)->numbytes >= 0 || errno == EWOULDBLOCK;
|
||||
printf("Recv finished, continune: %s\n", r?"true":"false");
|
||||
return r && (p)->numbytes >= 0;
|
||||
return r;
|
||||
}
|
||||
|
||||
static void handle_int(int signo) {
|
||||
|
||||
Reference in New Issue
Block a user