Skip to content

Commit

Permalink
HTTP2のOutputStreamがflushされてなかったのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
cos65535 committed Apr 13, 2021
1 parent 67ba904 commit 2d8fdec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/core/packetproxy/http2/FlowControlManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ public void write(Frame frame) throws Exception {
if (frame.getType() == Frame.Type.HEADERS) {
/* TODO: maximum concurrent streams is not implemented yet */
outputForFlowControl.write(frame.toByteArray());
outputForFlowControl.flush();
} else if (frame.getType() == Frame.Type.DATA) {
FlowControl flow = getFlow(frame.getStreamId());
flow.enqueue(frame);
writeData(flow);
} else {
outputForFlowControl.write(frame.toByteArray());
outputForFlowControl.flush();
}
}

Expand Down

0 comments on commit 2d8fdec

Please sign in to comment.