diff --git a/network.cpp b/network.cpp index 95c4259..b11b489 100644 --- a/network.cpp +++ b/network.cpp @@ -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 ) ); diff --git a/networktransport.cpp b/networktransport.cpp index d5e610b..8f1b633 100644 --- a/networktransport.cpp +++ b/networktransport.cpp @@ -148,7 +148,7 @@ void Transport::send_to_receiver( void ) string s = inst.tostring(); try { - fprintf( stderr, "Sent instruction (timeout %d) from %d => %d (terminal %d): %s\r\n", connection.timeout(), int(inst.old_num), int(inst.new_num), int(sent_states.back().num), inst.diff.c_str() ); + fprintf( stderr, "Sent instruction (timeout %d, queues %d/%d) from %d => %d (terminal %d): %s\r\n", connection.timeout(), (int)sent_states.size(), (int)received_states.size(), int(inst.old_num), int(inst.new_num), int(sent_states.back().num), inst.diff.c_str() ); connection.send( s ); } catch ( MTUException m ) { continue;