TSG-2588 服务端在同一流ID下,发送多次承诺推送帧处理问题

This commit is contained in:
fengweihao
2020-07-20 10:51:34 +08:00
parent d55f2e36d3
commit 3748af73ee

View File

@@ -907,7 +907,7 @@ nghttp2_submit_frame_priority(struct tfe_h2_stream *connection,const nghttp2_fra
TFE_LOG_ERROR(logger()->handle, "dir(%d), Fatal send error: %s\n",
dir, nghttp2_strerror(xret));
}
ngh2_session->last_sent_stream_id = MAX(ngh2_session->last_sent_stream_id, frame->hd.stream_id);
//ngh2_session->last_sent_stream_id = MAX(ngh2_session->last_sent_stream_id, frame->hd.stream_id);
connection->stream_action = stream_action;
return 0;
}
@@ -1354,6 +1354,8 @@ nghttp2_server_frame_submit_push_promise(struct tfe_h2_stream *h2_stream_info,
}
upstream_create_req(h2_stream_info, h2_stream_info->as_server, peer_h2_stream, stream_id);
/*clean header message **/
delete_nv_packet_data(headers);
stream_action = ACTION_DROP_DATA;
finish:
return stream_action;