Permalink
Browse files

Warn on congestion

  • Loading branch information...
1 parent 9cf411a commit 9eb9a0386e526d6587b9be75d14a1190831ecf3f @keithw keithw committed Oct 5, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/network/network.cc
View
3 src/network/network.cc
@@ -408,6 +408,9 @@ string Connection::recv( void )
/* signal counterparty to slow down */
/* this will gradually slow the counterparty down to the minimum frame rate */
saved_timestamp -= CONGESTION_TIMESTAMP_PENALTY;
+ if ( server ) {
+ fprintf( stderr, "Received explicit congestion notification.\n" );
+ }
}
}

0 comments on commit 9eb9a03

Please sign in to comment.