Fix bug that HTTP upgrade was not working

This commit is contained in:
Tatsuhiro Tsujikawa 2016-01-12 21:05:05 +09:00
parent fe8005327a
commit 15ea11d5db
1 changed files with 1 additions and 0 deletions

View File

@ -6569,6 +6569,7 @@ static int nghttp2_session_upgrade_internal(nghttp2_session *session,
session->last_proc_stream_id = 1; session->last_proc_stream_id = 1;
} else { } else {
nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR); nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
session->sent_stream_id = 1;
session->next_stream_id += 2; session->next_stream_id += 2;
} }
return 0; return 0;