Add doc about returning 0 from recv_callback
This commit is contained in:
parent
87abc8b951
commit
a3762b5b1f
|
@ -804,7 +804,8 @@ typedef ssize_t (*nghttp2_send_callback)
|
||||||
* without blocking, it must return :enum:`NGHTTP2_ERR_WOULDBLOCK`. If
|
* without blocking, it must return :enum:`NGHTTP2_ERR_WOULDBLOCK`. If
|
||||||
* it gets EOF before it reads any single byte, it must return
|
* it gets EOF before it reads any single byte, it must return
|
||||||
* :enum:`NGHTTP2_ERR_EOF`. For other errors, it must return
|
* :enum:`NGHTTP2_ERR_EOF`. For other errors, it must return
|
||||||
* :enum:`NGHTTP2_ERR_CALLBACK_FAILURE`.
|
* :enum:`NGHTTP2_ERR_CALLBACK_FAILURE`. Returning 0 is treated as
|
||||||
|
* :enum:`NGHTTP2_ERR_WOULDBLOCK`.
|
||||||
*/
|
*/
|
||||||
typedef ssize_t (*nghttp2_recv_callback)
|
typedef ssize_t (*nghttp2_recv_callback)
|
||||||
(nghttp2_session *session,
|
(nghttp2_session *session,
|
||||||
|
|
Loading…
Reference in New Issue