nghttpx: Update doc

This commit is contained in:
Tatsuhiro Tsujikawa 2016-01-11 17:36:47 +09:00
parent 863addcd5a
commit 6566ea7d6b
1 changed files with 4 additions and 0 deletions

View File

@ -554,6 +554,10 @@ int on_frame_send_callback(nghttp2_session *session, const nghttp2_frame *frame,
auto downstream = make_unique<Downstream>(upstream, handler->get_mcpool(),
promised_stream_id, 0);
// As long as we use nghttp2_session_mem_send(), setting stream
// user data here should not fail. This is because this callback
// is called just after frame was serialized. So no worries about
// hanging Downstream.
nghttp2_session_set_stream_user_data(session, promised_stream_id,
downstream.get());