[OpenSIPS-Devel] [OpenSIPS/opensips] e79c76: Set POLLRDHUP on Linux when polling rtpproxy's soc...

Maksym Sobolyev noreply at github.com
Wed Mar 22 22:09:51 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e79c76c074170842c9bdfdbc958e166ac4997123
      https://github.com/OpenSIPS/opensips/commit/e79c76c074170842c9bdfdbc958e166ac4997123
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M modules/rtpproxy/rtpproxy.c

  Log Message:
  -----------
  Set POLLRDHUP on Linux when polling rtpproxy's socket to drain
any unclaimed data. This seems to be necessary on TCP sockets
otherwise poll() appears to hang indefinitely if rtpproxy has been
terminated despite timeout being set to 0 (i.e. don't block).

With this flag set the disconnect is properly detected and socket
is re-connected after configured timeout.


  Commit: f3fe6c4d466943a225c4a7c842b7a6d42e2db9f6
      https://github.com/OpenSIPS/opensips/commit/f3fe6c4d466943a225c4a7c842b7a6d42e2db9f6
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M modules/rtpproxy/notification_process.c
    M modules/rtpproxy/rtppn_connect.c
    M modules/rtpproxy/rtpproxy.c
    M modules/rtpproxy/rtpproxy.h

  Log Message:
  -----------
  Add support for "cunix" variant of the local unix domain
communication socket, which is similar to "unix" but does not
require re-connecting the socket for every request thus
having lower overhead compared to that one. It is supported
by rtpproxy for number of years.


Compare: https://github.com/OpenSIPS/opensips/compare/a6ef19688876...f3fe6c4d4669



More information about the Devel mailing list