With srt-1.4.2 and 1.4.3 the test for setting SO_LINGER fails on one of my machines:
--- FAIL: TestNewSocketLinger (0.00s)
srtgo_test.go:34: Could not create a srt socket
FAIL
FAIL github.com/haivision/srtgo 0.007s
FAIL
Looking at the code it is using the native syscall.SetsockoptLinger directly on the srt socket which fails. Using the commented out version with srt_setsockopt fixes this for me, however I haven't yet tested whether the option is actually set.
With srt-1.4.2 and 1.4.3 the test for setting SO_LINGER fails on one of my machines:
Looking at the code it is using the native syscall.SetsockoptLinger directly on the srt socket which fails. Using the commented out version with srt_setsockopt fixes this for me, however I haven't yet tested whether the option is actually set.
https://github.com/Haivision/srtgo/blob/27de7e427495c78b590dc782943048e44abe4710/srtsocketoptions.go#L103-L113