mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-10 21:22:20 +03:00
set IP_PMTUDISC_PROBE instead of dontFragment (i.e. PMTUDISC_DO)
Summary: mvfst will need to handle pmtu in an app specific way. So just set DF bits but not pmtu. Reviewed By: siyengar Differential Revision: D17624134 fbshipit-source-id: 14f445bbb6a971efb8a3d550c84c3d4af53f8517
This commit is contained in:
committed by
Facebook Github Bot
parent
2bd01800f3
commit
e3b792e7f1
@@ -67,7 +67,7 @@ class SimpleQuicServerWorkerTest : public Test {
|
||||
folly::test::MockAsyncUDPSocket* rawSocket_{nullptr};
|
||||
};
|
||||
|
||||
TEST_F(SimpleQuicServerWorkerTest, DontFragment) {
|
||||
TEST_F(SimpleQuicServerWorkerTest, TurnOffPMTU) {
|
||||
auto sock = std::make_unique<folly::test::MockAsyncUDPSocket>(&eventbase_);
|
||||
rawSocket_ = sock.get();
|
||||
DCHECK(sock->getEventBase());
|
||||
@@ -79,7 +79,7 @@ TEST_F(SimpleQuicServerWorkerTest, DontFragment) {
|
||||
folly::SocketAddress addr("::1", 0);
|
||||
// We check versions in bind()
|
||||
worker_->setSupportedVersions({QuicVersion::MVFST});
|
||||
EXPECT_CALL(*rawSocket_, dontFragment(true)).Times(1);
|
||||
EXPECT_CALL(*rawSocket_, setDFAndTurnOffPMTU()).Times(1);
|
||||
worker_->bind(addr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user