Skip to content

Commit 21f0e82

Browse files
committedApr 28, 2018
fixup: clear storage early
1 parent 51adabe commit 21f0e82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/node_http2.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1366,14 +1366,15 @@ void Http2Session::ClearOutgoing(int status) {
13661366
CHECK_NE(flags_ & SESSION_STATE_SENDING, 0);
13671367

13681368
if (outgoing_buffers_.size() > 0) {
1369+
outgoing_storage_.clear();
1370+
13691371
for (const nghttp2_stream_write& wr : outgoing_buffers_) {
13701372
WriteWrap* wrap = wr.req_wrap;
13711373
if (wrap != nullptr)
13721374
wrap->Done(status);
13731375
}
13741376

13751377
outgoing_buffers_.clear();
1376-
outgoing_storage_.clear();
13771378
}
13781379

13791380
flags_ &= ~SESSION_STATE_SENDING;

0 commit comments

Comments
 (0)
Please sign in to comment.