Add int return value to on_frame_not_send_callback

This commit is contained in:
Tatsuhiro Tsujikawa
2013-08-29 21:51:58 +09:00
parent d4852b0f11
commit b9d2f9b6b0
5 changed files with 23 additions and 13 deletions

View File

@@ -1474,8 +1474,10 @@ int nghttp2_session_send(nghttp2_session *session)
it. */
nghttp2_frame *frame = nghttp2_outbound_item_get_ctrl_frame(item);
if(frame->hd.type != NGHTTP2_WINDOW_UPDATE) {
session->callbacks.on_frame_not_send_callback
(session, frame, framebuflen, session->user_data);
if(session->callbacks.on_frame_not_send_callback
(session, frame, framebuflen, session->user_data) != 0) {
return NGHTTP2_ERR_CALLBACK_FAILURE;
}
}
}
nghttp2_outbound_item_free(item);