mediamtx/internal/protocols
Jonathan Martin 1989997fe1
webrtc: fix memory leak when WHEP track gathering fails and decrease count of idle HTTP connections (#3124)
* fix: whep gathering failure leaks peer connections

* fix: failure to create whep client leaks

when read fails, client is not closed

* fix: close idle connection with whip client

* fix: no link check on early whip client close

* move http.Client.CloseIdleConnections() outside WHIPClient

* automatically call WHEPClient.Close() in case of errors during WHEPClient.Read() or WHEPClient.Publish()

---------

Co-authored-by: Jonathan Martin <jonathan.martin@marss.com>
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2024-03-10 11:33:00 +01:00
..
httpp rename httpserv into httpp (#3014) 2024-02-13 13:04:56 +01:00
mpegts move servers into internal/servers (#2792) 2023-12-08 19:17:17 +01:00
rpicamera add rpiCameraAWBGains (#2858) (#2954) 2024-01-28 21:48:21 +01:00
rtmp rtsp: add random value to timestamp of tracks from other protocols (#3071) 2024-02-26 00:41:05 +01:00
tls move static sources into dedicated package (#2616) 2023-10-31 14:19:04 +01:00
webrtc webrtc: fix memory leak when WHEP track gathering fails and decrease count of idle HTTP connections (#3124) 2024-03-10 11:33:00 +01:00
websocket move protocol-related code into internal/protocols (#2572) 2023-10-26 21:46:18 +02:00