]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 30 Oct 2025 16:09:11 +0000 (16:09 +0000)
commit481d4c0e756f0e83b12721314f6ac85602e40a54
tree33918667df2a12bf7ee8d50976606aab32793407
parent7e5b531828255bf75a126ef3fda484e1133a7f09
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