Camera::open() never returns when connecting to an invalid stream IP (Windows, Receiver sample)

I also noticed that @sherod reported what appears to be the same issue in another thread:
https://community.stereolabs.com/t/camera-open-seems-to-ignore-open-timeout-seconds-if-set-from-stream/11441

In InitParameters, setting open_timeout_sec doesn’t seem to have any effect when connecting to a streaming camera using setFromStream(). Even with open_timeout_sec set, Camera::open() never returns if the stream is unreachable.

Could someone from the Stereolabs team confirm whether open_timeout_sec is expected to apply to setFromStream() connections? If not, is there currently a recommended way to prevent Camera::open() from blocking indefinitely when the remote stream is unreachable?

Thank you!

1 Like