Use IP_PMTUDISC_DO

This commit is contained in:
Keith Winstein
2012-01-07 04:26:41 -05:00
parent 322aa506a1
commit 831b6dde3c
+1 -1
View File
@@ -77,7 +77,7 @@ void Connection::setup( void )
}
/* Enable path MTU discovery */
char flag = IP_PMTUDISC_WANT;
char flag = IP_PMTUDISC_DO;
socklen_t optlen = sizeof( flag );
if ( setsockopt( sock, IPPROTO_IP, IP_MTU_DISCOVER, &flag, optlen ) < 0 ) {
throw NetworkException( "setsockopt", errno );