Skip to content

Increase DEFAULT_BUFFER_LOCK_GET_TIMEOUT to 3s#204

Merged
ayufan merged 1 commit intoayufan:mainfrom
jacopotediosi:fix/increase-default_buffer_log_get_timeout
Mar 2, 2026
Merged

Increase DEFAULT_BUFFER_LOCK_GET_TIMEOUT to 3s#204
ayufan merged 1 commit intoayufan:mainfrom
jacopotediosi:fix/increase-default_buffer_log_get_timeout

Conversation

@jacopotediosi
Copy link
Copy Markdown
Contributor

This PR increases the DEFAULT_BUFFER_LOCK_GET_TIMEOUT constant to 3 seconds to prevent the HTTP 500 "No frames" error when stale detection triggers and restarts the camera.

3 seconds is sufficient to allow the first frame to be served after restart with the 3 cheap USB cameras I tested with. I have no idea if more is needed for poorer cameras.

Further details are available in the discussion in PR #200 thread.

@ayufan ayufan merged commit 0e07f3e into ayufan:main Mar 2, 2026
8 of 10 checks passed
@jacopotediosi jacopotediosi deleted the fix/increase-default_buffer_log_get_timeout branch March 2, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants