Fixed the bug that spdylay_recv does not return SPDYLAY_ERR_EOF.

This commit is contained in:
Tatsuhiro Tsujikawa 2012-05-11 00:21:36 +09:00
parent d3a670a924
commit 3e2dc04264
1 changed files with 1 additions and 1 deletions

View File

@ -1525,7 +1525,7 @@ static ssize_t spdylay_recv(spdylay_session *session, uint8_t *buf, size_t len)
return SPDYLAY_ERR_CALLBACK_FAILURE; return SPDYLAY_ERR_CALLBACK_FAILURE;
} }
} else if(r < 0) { } else if(r < 0) {
if(r != SPDYLAY_ERR_WOULDBLOCK) { if(r != SPDYLAY_ERR_WOULDBLOCK && r != SPDYLAY_ERR_EOF) {
r = SPDYLAY_ERR_CALLBACK_FAILURE; r = SPDYLAY_ERR_CALLBACK_FAILURE;
} }
} }