[OpenSIPS-Devel] [OpenSIPS/opensips] 12e705: [mi_datagram] turn the RX sockets to non-blocking

Bogdan Andrei IANCU noreply at github.com
Tue Dec 16 07:38:39 UTC 2025


  Branch: refs/heads/3.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 12e705e296470872899e848f030058e8bc052d11
      https://github.com/OpenSIPS/opensips/commit/12e705e296470872899e848f030058e8bc052d11
  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.



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list