Eliminate synthetic packet loss and tab comparison

This commit is contained in:
Keith Winstein
2011-08-14 02:15:53 -04:00
parent dbdd0d33cd
commit ec4a75dcaf
2 changed files with 2 additions and 7 deletions
-5
View File
@@ -177,11 +177,6 @@ void Connection::send( string &s, bool send_timestamp )
string p = px.tostring( &session );
/* XXX synthetic packet loss */
if ( rand() < RAND_MAX / 2 ) {
return;
}
ssize_t bytes_sent = sendto( sock, p.data(), p.size(), 0,
(sockaddr *)&remote_addr, sizeof( remote_addr ) );