Skip to content

Commit

Permalink
Use QHttp2Connection in qhttp2protocolhandler
Browse files Browse the repository at this point in the history
After introducing QHttp2Connection earlier we ended up having some
duplication. For 6.9 let's be brave and get rid of that :)

This patch drops all the code that can now be handled by
QHttp2Connection, and uses that directly.

Fixes: QTBUG-129211
Change-Id: Ie82b532452010b06f33e29457da8fb698898a29f
Reviewed-by: Mate Barany <[email protected]>
  • Loading branch information
Morten242 committed Nov 21, 2024
1 parent ba5a2fb commit 3307d59
Show file tree
Hide file tree
Showing 5 changed files with 342 additions and 1,283 deletions.
2 changes: 1 addition & 1 deletion src/network/access/qhttp2connection_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class Q_NETWORK_EXPORT QHttp2Connection : public QObject
return nullptr;
}

void close() { sendGOAWAY(Http2::HTTP2_NO_ERROR); }
void close(Http2::Http2Error error = Http2::HTTP2_NO_ERROR) { sendGOAWAY(error); }

bool isGoingAway() const noexcept { return m_goingAway; }

Expand Down
Loading

0 comments on commit 3307d59

Please sign in to comment.