]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Avoid close the rtp/rtcp fd twice.
authorAaron An <anjb@ti-net.com.cn>
Mon, 18 Dec 2017 12:14:11 +0000 (20:14 +0800)
committerSean Bright <sean.bright@gmail.com>
Tue, 19 Dec 2017 19:55:45 +0000 (13:55 -0600)
commit63b6339bd6e8022b0708d065c18173f8ee9aec49
tree440e4eea5522d255b498cfc496ee03bf397df085
parenta63740a1fd5ba4474c85d873d9557506c4daab8d
res_rtp_asterisk:  Avoid close the rtp/rtcp fd twice.

When RTCP-MUX enabled. rtp->s is the same as rtcp->s, check this before
close the file descriptor. Close the FD twice will hangs the asterisk
under heavy load.

ASTERISK-27299 #close
Reported-by: Aaron An
Tested-by: AaronAn
Change-Id: I870a072d73fd207463ac116ef97100addbc0820a
res/res_rtp_asterisk.c