Add more docs about NGHTTP2_ERR_DATA_EXIST and its condition
This commit documents NGHTTP2_ERR_DATA_EXIST also occurs if HEADERS has been already attached to stream too. This commit also fixes possible assertion error, and now nghttp2_submit_headers() and nghttp2_submit_response() may return NGHTTP2_ERR_DATA_EXIST. But we recommend to use nghttp2_submit_request() and nghttp2_submit_response(), and using them will avoid this error.
Showing
Please register or sign in to comment