[OpenSIPS-Devel] [OpenSIPS/opensips] 391e44: [mi_datagram] turn the RX sockets to non-blocking
Bogdan Andrei IANCU
noreply at github.com
Tue Dec 16 07:39:43 UTC 2025
Branch: refs/heads/3.5
Home: https://github.com/OpenSIPS/opensips
Commit: 391e4472d1cab1f835456542327ff104c43c69c2
https://github.com/OpenSIPS/opensips/commit/391e4472d1cab1f835456542327ff104c43c69c2
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2025-12-16 (Tue, 16 Dec 2025)
Changed paths:
M modules/mi_datagram/datagram_fnc.c
Log Message:
-----------
[mi_datagram] turn the RX sockets to non-blocking
As we have multiple procs reading from the same datagram sockets, we may end up with a mixing between the procs woken up by OS and the procs doing the reading. So some procs (even if were woken up) may have nothing to read.
To be resilient, better do non-blocking reading and igonre the EAGAIN or EWOULDBLOCK.
(cherry picked from commit 12e705e296470872899e848f030058e8bc052d11)
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list