Commit 3f4b6f2b authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Clean up

parent a0e88483
......@@ -1940,15 +1940,6 @@ static int session_prep_frame(nghttp2_session *session,
}
nghttp2_frame_pack_ping(&session->aob.framebufs, &frame->ping);
break;
case NGHTTP2_WINDOW_UPDATE: {
rv = session_predicate_window_update_send(session, frame->hd.stream_id);
if (rv != 0) {
return rv;
}
nghttp2_frame_pack_window_update(&session->aob.framebufs,
&frame->window_update);
break;
}
case NGHTTP2_GOAWAY:
rv = nghttp2_frame_pack_goaway(&session->aob.framebufs, &frame->goaway);
if (rv != 0) {
......@@ -1957,6 +1948,14 @@ static int session_prep_frame(nghttp2_session *session,
session->local_last_stream_id = frame->goaway.last_stream_id;
break;
case NGHTTP2_WINDOW_UPDATE:
rv = session_predicate_window_update_send(session, frame->hd.stream_id);
if (rv != 0) {
return rv;
}
nghttp2_frame_pack_window_update(&session->aob.framebufs,
&frame->window_update);
break;
default:
return NGHTTP2_ERR_INVALID_ARGUMENT;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment