From a3762b5b1fc2d290a01cbe07a7053f3ba1f55cc7 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 5 Sep 2013 23:23:17 +0900 Subject: [PATCH] Add doc about returning 0 from recv_callback --- lib/includes/nghttp2/nghttp2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index 61318559..65612750 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -804,7 +804,8 @@ typedef ssize_t (*nghttp2_send_callback) * without blocking, it must return :enum:`NGHTTP2_ERR_WOULDBLOCK`. If * 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_CALLBACK_FAILURE`. + * :enum:`NGHTTP2_ERR_CALLBACK_FAILURE`. Returning 0 is treated as + * :enum:`NGHTTP2_ERR_WOULDBLOCK`. */ typedef ssize_t (*nghttp2_recv_callback) (nghttp2_session *session,