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

Bogdan Andrei IANCU noreply at github.com
Tue Dec 16 07:40:10 UTC 2025


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