Skip to content

Commit 0001159

Browse files
Aman Sharmafacebook-github-bot
Aman Sharma
authored andcommitted
Initialize versions within parsing and writing classes
Summary: This diff has no real functional change, we're just initializing the versions in the writers, parsers, codec, etc. based on the version that was negotiated during the handshake. Reviewed By: afrind Differential Revision: D70864940 fbshipit-source-id: 024c8dee2eaa78b61e280d0d70f9702ef36ea1e4
1 parent a43b78b commit 0001159

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

proxygen/lib/http/webtransport/test/FakeSharedWebTransport.h

+6
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,19 @@ class FakeSharedWebTransport : public WebTransport {
266266
}
267267
readHandles.clear();
268268
peerHandler_->onSessionEnd(error);
269+
sessionClosed_ = true;
269270
return folly::unit;
270271
}
271272

273+
bool isSessionClosed() const {
274+
return sessionClosed_;
275+
}
276+
272277
std::map<uint64_t, std::shared_ptr<FakeStreamHandle>> writeHandles;
273278
std::map<uint64_t, std::shared_ptr<FakeStreamHandle>> readHandles;
274279

275280
private:
281+
bool sessionClosed_{false};
276282
uint64_t nextBidiStreamId_{0};
277283
uint64_t nextUniStreamId_{2};
278284
FakeSharedWebTransport* peer_{nullptr};

0 commit comments

Comments
 (0)