I'm using runOnDemand functionality and have issue, that independently of any settings get 10s wait timeout.
Which version are you using?
v0.17.17
Which operating system are you using?
Describe the issue
I'm using runOnDemand functionality and have issue, that independently of any settings get 10s wait timeout.
Describe how to replicate the issue
Here is config changes that I have
readTimeout: 30s
writeTimeout: 30s
runOnDemand: ./start
runOnDemandStartTimeout: 30s
runOnDemandCloseAfter: 30s
Flow is following
When clients connect to the server, rtsp-server run API command, which is send via server to specified controller which start streaming to server. But unfortunately, I always have 10seconds timeout from reading client to server
2022/03/20 19:27:35 DEB [path live/13d56c00c9ecc0371d0e804782775be4ddeaba2d-102] opened
2022/03/20 19:27:35 INF [path live/13d56c00c9ecc0371d0e804782775be4ddeaba2d-102] runOnDemand command started
2022/03/20 19:27:36 INF [path live/13d56c00c9ecc0371d0e804782775be4ddeaba2d-102] runOnDemand command exited with code 0
2022/03/20 19:27:45 INF [path live/13d56c00c9ecc0371d0e804782775be4ddeaba2d-102] runOnDemand command stopped
2022/03/20 19:27:45 DEB [path live/13d56c00c9ecc0371d0e804782775be4ddeaba2d-102] closed (not in use)
2022/03/20 19:27:45 DEB [RTSP] [conn 192.168.1.136:49971] [s->c] RTSP/1.0 400 Bad Request
CSeq: 2
Server: gortsplib
2022/03/20 19:27:45 INF [RTSP] [conn 192.168.1.136:49971] closed (source of path 'live/13d56c00c9ecc0371d0e804782775be4ddeaba2d-102' has timed out)
I tried to do sleep in start command, or exit immediately. Nothing works, timeout is always 10seconds.
P.S. When stream start in 10 seconds, everything works. When I reconnect after fail, and stream still running - that also works. So in general everything works but timeouts are always 10 seconds
I'm using runOnDemand functionality and have issue, that independently of any settings get 10s wait timeout.
Which version are you using?
v0.17.17
Which operating system are you using?
Describe the issue
I'm using runOnDemand functionality and have issue, that independently of any settings get 10s wait timeout.
Describe how to replicate the issue
Here is config changes that I have
Flow is following
When clients connect to the server, rtsp-server run API command, which is send via server to specified controller which start streaming to server. But unfortunately, I always have 10seconds timeout from reading client to server
I tried to do sleep in start command, or exit immediately. Nothing works, timeout is always 10seconds.
P.S. When stream start in 10 seconds, everything works. When I reconnect after fail, and stream still running - that also works. So in general everything works but timeouts are always 10 seconds