mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-30 10:12:06 +01:00
KeepAliveTask: Increased the initial heartbeat dealy in order to
prevent a heartbeat timeout in high latency situations (mobile environments)" git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13389 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
7770511111
commit
3c2eaba840
1 changed files with 2 additions and 2 deletions
|
@ -277,9 +277,9 @@ class PacketWriter {
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
// Sleep 15 seconds before sending first heartbeat. This will give time to
|
// Sleep a minimum of 15 seconds plus delay before sending first heartbeat. This will give time to
|
||||||
// properly finish TLS negotiation and then start sending heartbeats.
|
// properly finish TLS negotiation and then start sending heartbeats.
|
||||||
Thread.sleep(15000);
|
Thread.sleep(15000 + delay);
|
||||||
}
|
}
|
||||||
catch (InterruptedException ie) {
|
catch (InterruptedException ie) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
|
|
Loading…
Reference in a new issue