Fixed the bug that spdylay_recv does not return SPDYLAY_ERR_EOF.
This commit is contained in:
parent
d3a670a924
commit
3e2dc04264
|
@ -1525,7 +1525,7 @@ static ssize_t spdylay_recv(spdylay_session *session, uint8_t *buf, size_t len)
|
|||
return SPDYLAY_ERR_CALLBACK_FAILURE;
|
||||
}
|
||||
} else if(r < 0) {
|
||||
if(r != SPDYLAY_ERR_WOULDBLOCK) {
|
||||
if(r != SPDYLAY_ERR_WOULDBLOCK && r != SPDYLAY_ERR_EOF) {
|
||||
r = SPDYLAY_ERR_CALLBACK_FAILURE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue