respondd: improve unix portability in errno of recvmsg
This commit is contained in:
parent
091bb8ed09
commit
aba6c46bd7
|
@ -432,7 +432,7 @@ static void accept_request(struct request_schedule *schedule, int sock,
|
|||
update_time();
|
||||
|
||||
// Timeout
|
||||
if (input_bytes < 0 && errno == EWOULDBLOCK)
|
||||
if (input_bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK))
|
||||
return;
|
||||
|
||||
if (input_bytes < 0) {
|
||||
|
|
Loading…
Reference in New Issue