Skip to content

Commit

Permalink
Update alive duration.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsdotpm committed Feb 15, 2016
1 parent 2eb852c commit 62b75fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyp2p/dht_msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
LONG_POLLING = True
RESERVATION_TIMEOUT = (10 * 60) - 5
MUTEX_TIMEOUT = RESERVATION_TIMEOUT
ALIVE_TIMEOUT = 60 - 5
ALIVE_TIMEOUT = (60 * 10) - 5


class DHTProtocol:
Expand Down
2 changes: 1 addition & 1 deletion server/sample.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"long_polling" => True,
"mutex_timeout" => (10 * 60), // Currently not used.
"reservation_timeout" => (10 * 60), // Nodes are reserved for 10 minutes of testing.
"alive_timeout" => (120), // Keep nodes very fresh.
"alive_timeout" => (60 * 10), // Keep nodes very fresh.
"message_timeout" => (60 * 60 * 24), // Old messages cleaned up daily.
"neighbour_limit" => 5
);
Expand Down

0 comments on commit 62b75fa

Please sign in to comment.