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

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


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