From 9eb9a0386e526d6587b9be75d14a1190831ecf3f Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Thu, 4 Oct 2012 21:47:58 -0400 Subject: [PATCH] Warn on congestion --- src/network/network.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network/network.cc b/src/network/network.cc index 0ff187c..60df783 100644 --- a/src/network/network.cc +++ b/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" ); + } } }