More robust shutdown sequence with warning on unclean shutdown.

This commit is contained in:
Keith Winstein
2012-04-16 06:22:35 -04:00
parent 79542106c1
commit a8c3df9c80
5 changed files with 26 additions and 14 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ namespace Network {
static const int SEND_INTERVAL_MAX = 250; /* ms between frames */
static const int ACK_INTERVAL = 3000; /* ms between empty acks */
static const int ACK_DELAY = 100; /* ms before delayed ack */
static const int SHUTDOWN_RETRIES = 3; /* number of shutdown packets to send before giving up */
static const int SHUTDOWN_RETRIES = 16; /* number of shutdown packets to send before giving up */
static const int ACTIVE_RETRY_TIMEOUT = 10000; /* attempt to resend at frame rate */
/* helper methods for tick() */