Query Path MTU on every instruction because Linux is not so reliable about EMSGSIZE

This commit is contained in:
Keith Winstein
2011-12-22 01:02:24 -05:00
parent 7251279f55
commit 3a722cb3d3
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -246,6 +246,7 @@ void TransportSender<MyState>::send_in_fragments( string diff, uint64_t new_num
shutdown_tries++;
}
connection->update_MTU();
vector<Fragment> fragments = fragmenter.make_fragments( inst, connection->get_MTU() );
for ( auto i = fragments.begin(); i != fragments.end(); i++ ) {