]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_iax2: better handling for timeout and EINTR
authorktyerman <kirsty.tyerman@boeing.com>
Tue, 5 Jun 2018 01:31:39 +0000 (11:31 +1000)
committerKirsty Tyerman <kirsty.tyerman@boeing.com>
Wed, 13 Jun 2018 22:46:40 +0000 (16:46 -0600)
commitc6116a323400229590181106fe93d7c3cb69be47
tree3e2c9512a2d6995a6423f0f6a676aed889380113
parent49c4c8af986bad447f8135f45d69daa23e46e8c9
chan_iax2: better handling for timeout and EINTR

The iax2 module is not handling timeout and EINTR case properly. Mainly when
there is an interupt to the kernel thread. In case of ast_io_wait recieves a
signal, or timeout it can be an error or return 0 which eventually escapes the
thread loop, so that it cant recieve any data. This then causes the modules
receive queue to build up on the kernel and stop any communications via iax in
asterisk.

The proposed patch is for the iax module, so that timeout and EINTR does not
exit the thread.

ASTERISK-27705
Reported-by: Kirsty Tyerman
Change-Id: Ib4c32562f69335869adc1783608e940c3535fbfb
channels/chan_iax2.c