]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_audiosocket: fix temporarily unavailable
authorRoman Pertsev <roman.percev@gmail.com>
Tue, 7 Oct 2025 09:49:12 +0000 (12:49 +0300)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 29 Oct 2025 15:21:48 +0000 (15:21 +0000)
commit27fb039839a2c6f339fc413be944f2a1f05bfe34
treef04421d3bf2c37a98b768ae22ad3212f72188789
parent1564548980f83106c1c573d1d556e055abb0b6d3
res_audiosocket: fix temporarily unavailable

Operations on non-blocking sockets may return a resource temporarily unavailable error (EAGAIN or EWOULDBLOCK). This is not a fatal error but a normal condition indicating that the operation would block.

This patch corrects the handling of this case. Instead of incorrectly treating it as a reason to terminate the connection, the code now waits for data to arrive on the socket.
res/res_audiosocket.c