mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 01:37:14 +00:00
doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13124 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
17aca10ec6
commit
775a987490
@ -516,9 +516,10 @@ iks_recv (iksparser *prs, int timeout)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
len = data->trans->recv (data->sock, data->buf, NET_IO_BUF_SIZE - 1, timeout);
|
len = data->trans->recv (data->sock, data->buf, NET_IO_BUF_SIZE - 1, timeout);
|
||||||
|
if (len == 0) len = -1;
|
||||||
}
|
}
|
||||||
if (len <= 0) return IKS_NET_RWERR;
|
if (len < 0) return IKS_NET_RWERR;
|
||||||
|
if (len == 0) break;
|
||||||
data->buf[len] = '\0';
|
data->buf[len] = '\0';
|
||||||
if (data->logHook) data->logHook (data->user_data, data->buf, len, 1);
|
if (data->logHook) data->logHook (data->user_data, data->buf, len, 1);
|
||||||
ret = iks_parse (prs, data->buf, len, 0);
|
ret = iks_parse (prs, data->buf, len, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user