From 97b853254ab4e4a563a7477628896bd8d7f2870b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 14 Feb 2012 01:42:00 +0900 Subject: [PATCH] Fixed the bug that length parameter in on_data_send_callback includes header length. --- lib/spdylay_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spdylay_session.c b/lib/spdylay_session.c index 10eb4b4..be35d4a 100644 --- a/lib/spdylay_session.c +++ b/lib/spdylay_session.c @@ -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) {