Put horrible packet loss back in

This commit is contained in:
Keith Winstein
2011-08-10 02:35:21 -04:00
parent db18d2e2b3
commit 1c8b008e89
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -161,11 +161,9 @@ 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 ) );