Skip to content

fix: honor connect_timeout in OCR requests#63

Open
ThanhNguyxn wants to merge 1 commit intozai-org:mainfrom
ThanhNguyxn:fix/ocr-timeout-respect-connect
Open

fix: honor connect_timeout in OCR requests#63
ThanhNguyxn wants to merge 1 commit intozai-org:mainfrom
ThanhNguyxn:fix/ocr-timeout-respect-connect

Conversation

@ThanhNguyxn
Copy link

Summary

  • Use configured connect_timeout for OCR API requests and preflight checks
  • Keeps request_timeout behavior unchanged; improves slow-connection handling

Why

connect_timeout is part of config but was not used in the actual HTTP requests. This makes the client ignore user-configured connection limits and can lead to unexpected hangs on slow connections.

Testing

  • Not run (environment lacks dependencies)

@ThanhNguyxn ThanhNguyxn mentioned this pull request Feb 5, 2026
2 tasks
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.

1 participant