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

Maksym Sobolyev noreply at github.com
Thu Mar 23 16:56:06 UTC 2023


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c7e142f08fd5a30bd3aa9117f2012e9980a3ff5f
      https://github.com/OpenSIPS/opensips/commit/c7e142f08fd5a30bd3aa9117f2012e9980a3ff5f
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-23 (Thu, 23 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.





More information about the Devel mailing list