mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
keep UDP connection alive for one day after last packet received, not
a week. The algorithm needs revisiting, but this is low-risk enough to do now.
This commit is contained in:
parent
dd24f86eb8
commit
59368e6c95
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ public class RelayService extends XWService
|
|||
private static final int MAX_BUF = MAX_SEND - 2;
|
||||
private static final int REG_WAIT_INTERVAL = 10;
|
||||
|
||||
// One week, in seconds. Probably should be configurable.
|
||||
private static final long MAX_KEEPALIVE_SECS = 7 * 24 * 60 * 60;
|
||||
// One day, in seconds. Probably should be configurable.
|
||||
private static final long MAX_KEEPALIVE_SECS = 24 * 60 * 60;
|
||||
|
||||
private static final String CMD_STR = "CMD";
|
||||
|
||||
|
|
Loading…
Reference in a new issue