Fix bug that idle self-depending PRIORITY is not handled gracefully
Previously, we did not handle PRIORITY frame which depends on itself and for idle stream. As a result, nghttp2_session_mem_recv (or nghttp2_session_recv) returne NGHTTP2_ERR_NOMEM. The error code was still misleading. It was not out of memory, and we failed to insert hash map because of duplicated key, which was treated as out of memory. This commit fixes this issue, by explicitly checking dependency for incoming PRIORITY for all cases.
Showing
Please register or sign in to comment