multihandlesink: Use the monotonic clock for detecting timeouts and connection durations
authorSebastian Dröge <sebastian@centricular.com>
Tue, 4 May 2021 15:09:07 +0000 (18:09 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 5 May 2021 16:12:38 +0000 (16:12 +0000)
commit5a65f5f3b77fcb5186e5aea7873678ec72989c4c
tree88e53ec0e8775f8938b24f377267af66a4333fb5
parent26b8a96b84650a481aaf37a2b750f40a54c5f35b
multihandlesink: Use the monotonic clock for detecting timeouts and connection durations

Otherwise real-time clock changes can wrongly trigger timeouts, or not
cause timeouts to happen in time.

Unfortunately real-time clock times still have to be kept track inside
the elements for the statistics. Switching those over to the monotonic
clock would cause behaviour changes from the application point of view.

The statistics are extended with fields with monotonic times though.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1137>
gst/tcp/gstmultifdsink.c
gst/tcp/gstmultihandlesink.c
gst/tcp/gstmultihandlesink.h
gst/tcp/gstmultisocketsink.c