mediamtx/internal/protocols/webrtc
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
..
api.go webrtc: improve connectivity mechanism (#2686) 2023-11-12 23:55:28 +01:00
ice_fragment_test.go
ice_fragment.go
incoming_track.go support G711 tracks with multiple channels and custom sample rates (#2891) 2024-01-13 11:40:26 +01:00
link_header_test.go
link_header.go
outgoing_track.go
peer_connection_test.go webrtc: fix deadlock when a WHEP source fails (#3062) (#3108) (#3110) 2024-03-06 22:38:36 +01:00
peer_connection.go webrtc: fix deadlock when a WHEP source fails (#3062) (#3108) (#3110) 2024-03-06 22:38:36 +01:00
track_count.go
track_wrapper.go
tracks_to_medias.go
webrtc.go
whip_client.go 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
whip_delete_session.go
whip_options_ice_servers.go
whip_patch_candidate.go
whip_post_offer.go