1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-22 07:38:52 -05:00

Fixed the bug that length parameter in on_data_send_callback includes header length.

This commit is contained in:
Tatsuhiro Tsujikawa 2012-02-14 01:42:00 +09:00
parent 7abf48f061
commit 97b853254a

View File

@ -654,7 +654,7 @@ static int spdylay_session_after_frame_sent(spdylay_session *session)
if(session->callbacks.on_data_send_callback) {
session->callbacks.on_data_send_callback
(session, frame->data.flags, frame->data.stream_id,
session->aob.framebuflen, session->user_data);
session->aob.framebuflen-SPDYLAY_HEAD_LEN, session->user_data);
}
} else {
if(session->callbacks.on_ctrl_send_callback) {