[OpenSIPS-Devel] [OpenSIPS/opensips] 62af72: [core] make the per-process IPC sending non-blocking

Bogdan Andrei IANCU noreply at github.com
Fri Nov 5 14:26:06 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 62af720cd5a9d04d982b474398294ef5068e9f45
      https://github.com/OpenSIPS/opensips/commit/62af720cd5a9d04d982b474398294ef5068e9f45
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2021-11-05 (Fri, 05 Nov 2021)

  Changed paths:
    M ipc.c

  Log Message:
  -----------
  [core] make the per-process IPC sending non-blocking

A process may get stuck (history showed us such real cases) and we do not want to have other processes getting blocked by trying to do an IPC to such procs (if they are stuck, they will not consume their IPC cmds, so the IPC sender will also block after some time, when the pipe's buffer is full).
So, better make the write pipe non-blocking, discard the current IPC cmd and avoid escalating the blocking over other procs.





More information about the Devel mailing list