mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Use keepalives effectively in order diagnose bug #12432.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1565,7 +1565,7 @@ static void *aji_recv_loop(void *data)
|
||||
else if (res == IKS_NET_TLSFAIL)
|
||||
ast_log(LOG_WARNING, "JABBER: Failure in TLS.\n");
|
||||
else if (client->timeout == 0 && client->state == AJI_CONNECTED) {
|
||||
res = iks_send_raw(client->p, " ");
|
||||
res = client->keepalive ? iks_send_raw(client->p, " ") : IKS_OK;
|
||||
if(res == IKS_OK)
|
||||
client->timeout = 50;
|
||||
else
|
||||
|
Reference in New Issue
Block a user