Closed gourytch closed 2 years ago
goroutine n registerForStats(...) does not finish on connection close. https://github.com/voc/srtrelay/blob/master/srt/server.go#L294-L301
solution: create cancellable context in Handle() function and pass it to the registerForStats https://github.com/voc/srtrelay/blob/master/srt/server.go#L199
Thanks a lot, good find
goroutine n registerForStats(...) does not finish on connection close. https://github.com/voc/srtrelay/blob/master/srt/server.go#L294-L301
solution: create cancellable context in Handle() function and pass it to the registerForStats https://github.com/voc/srtrelay/blob/master/srt/server.go#L199