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:
Philippe Sultan
2008-04-17 13:42:23 +00:00
parent 176add9ecd
commit 2ebfcb323b

View File

@@ -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