mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
Stop setting clientConnId in ServerStateMachine [2/x]
Summary: Removes clientConnId completely from ServerConnectionIdParams. This diff first fixes an incorrect assumption; it calls `shortHeader.getConnectionId()` which is actually the destination id (server) not the client connection id. Next, this entire block is unnecessary, because this will be called after the transport is created, so the clientConnectionId will always be set. This also setsconn.serverConnectionId earlier (shouldn't depend on connClientId). Reviewed By: yangchi Differential Revision: D16792866 fbshipit-source-id: 537ba12baa9939c9d5512e46eb914c1d3a7a9aa2
This commit is contained in:
committed by
Facebook Github Bot
parent
196dd99308
commit
594a98be7a
@@ -163,7 +163,6 @@ class TestQuicTransport
|
||||
while (!cursor.isAtEnd()) {
|
||||
// create server chosen connId with processId = 0 and workerId = 0
|
||||
ServerConnectionIdParams params(0, 0, 0);
|
||||
params.clientConnId = *conn_->clientConnectionId;
|
||||
conn_->serverConnectionId = connIdAlgo_->encodeConnectionId(params);
|
||||
auto type = static_cast<TestFrameType>(cursor.readBE<uint8_t>());
|
||||
if (type == TestFrameType::CRYPTO) {
|
||||
@@ -312,7 +311,6 @@ class TestQuicTransport
|
||||
void setServerConnectionId() {
|
||||
// create server chosen connId with processId = 0 and workerId = 0
|
||||
ServerConnectionIdParams params(0, 0, 0);
|
||||
params.clientConnId = *conn_->clientConnectionId;
|
||||
conn_->serverConnectionId = connIdAlgo_->encodeConnectionId(params);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user