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
1 changed files with 1 additions and 1 deletions

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) {