Add doc about returning 0 from recv_callback

This commit is contained in:
Tatsuhiro Tsujikawa 2013-09-05 23:23:17 +09:00
parent 87abc8b951
commit a3762b5b1f
1 changed files with 2 additions and 1 deletions

View File

@ -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,