Respond to explicit congestion notification (slow down sender)

This commit is contained in:
Keith Winstein
2012-09-28 19:07:31 -04:00
parent f0d9cb3db3
commit 9ac3b65090
3 changed files with 65 additions and 11 deletions
+2
View File
@@ -94,6 +94,8 @@ namespace Network {
static const unsigned int SERVER_ASSOCIATION_TIMEOUT = 20000;
static const unsigned int PORT_HOP_INTERVAL = 20000;
static const int CONGESTION_TIMESTAMP_PENALTY = 500; /* ms */
static bool try_bind( int socket, uint32_t addr, int port );
int sock;