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

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


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