Commit 3e2dc042 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fixed the bug that spdylay_recv does not return SPDYLAY_ERR_EOF.

parent d3a670a9
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment