]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
ftmod_misdn: Retry recvfrom() in case of EAGAIN
authorStefan Knoblich <stkn@openisdn.net>
Mon, 7 Jan 2013 12:24:01 +0000 (13:24 +0100)
committerStefan Knoblich <stkn@openisdn.net>
Mon, 7 Jan 2013 12:35:38 +0000 (13:35 +0100)
commit95ac0ecc2f3ec73812867c655aa5b5e5594cffe4
treedc6d124e2f43bc0457b7de5ee09e428ec6ffcae7
parent01c1195ef403dbc10424147f9b39618dbb2db4d6
ftmod_misdn: Retry recvfrom() in case of EAGAIN

epoll_wait() on the B-channel socket may indicate pending messages, but
recvfrom() returns EAGAIN. Retry a few more times (up to 5 retries)
to get the pending message.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
libs/freetdm/src/ftmod/ftmod_misdn/ftmod_misdn.c