mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Return SPDYLAY_ERR_EOF when SSL_read() returned 0
This commit is contained in:
@@ -387,7 +387,7 @@ ssize_t hd_recv_callback(spdylay_session *session,
|
||||
r = SPDYLAY_ERR_CALLBACK_FAILURE;
|
||||
}
|
||||
} else if(r == 0) {
|
||||
r = SPDYLAY_ERR_CALLBACK_FAILURE;
|
||||
r = SPDYLAY_ERR_EOF;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -210,6 +210,8 @@ static ssize_t recv_callback(spdylay_session *session,
|
||||
} else {
|
||||
rv = SPDYLAY_ERR_CALLBACK_FAILURE;
|
||||
}
|
||||
} else if(rv == 0) {
|
||||
rv = SPDYLAY_ERR_EOF;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user