mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-09 10:00:57 +03:00
MaxNumMigrationsAllowed Transport Setting
Summary: - add configurable `maxNumMigrationsAllowed` to transport settings Reviewed By: kvtsoy Differential Revision: D41137450 fbshipit-source-id: a82c97e0b58c13f5df3c4cd075d3f17702eca009
This commit is contained in:
committed by
Facebook GitHub Bot
parent
772b47adaa
commit
729623ca26
@@ -594,7 +594,8 @@ void onConnectionMigration(
|
||||
QuicServerConnectionState& conn,
|
||||
const folly::SocketAddress& newPeerAddress,
|
||||
bool isIntentional) {
|
||||
if (conn.migrationState.numMigrations >= kMaxNumMigrationsAllowed) {
|
||||
if (conn.migrationState.numMigrations >=
|
||||
conn.transportSettings.maxNumMigrationsAllowed) {
|
||||
if (conn.qLogger) {
|
||||
conn.qLogger->addPacketDrop(
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user