From e7eff323a6737baea4fbdca18459ab31a18b623f Mon Sep 17 00:00:00 2001 From: Martin Chang Date: Thu, 20 Jun 2024 20:52:14 +0800 Subject: [PATCH] fix failing on debug mode (#2079) --- lib/src/Http2Transport.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Http2Transport.cc b/lib/src/Http2Transport.cc index 5fe72782..23e27aaf 100644 --- a/lib/src/Http2Transport.cc +++ b/lib/src/Http2Transport.cc @@ -679,7 +679,7 @@ void Http2Transport::sendRequestInLoop(const HttpRequestPtr &req, // -2 because we are using the next stream id for the next request // TODO: Clean interface to get the current highest stream id. Might need // to keep tracking separately - const auto streamId = *sid - 2; + const auto streamId = *sid; assert(streamId % 2 == 1); LOG_TRACE << "Sending HTTP/2 request: streamId=" << streamId; if (streams.find(streamId) != streams.end())