]> 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)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 13 Jun 2018 12:09:22 +0000 (06:09 -0600)
commitcdeac34dbe76c6a818c6f70a353191c2692fa329
treeddc14a208eade7fdf90cd143e05ea08497391734
parentb1b7be503eb1574178f601b104962845c7f19632
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