docling-project / docling-project/docling
Docling read timeout increasement
- Dominant language
- Python
- Stars
- 66.4k
- Forks
- 4.8k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 95
Description
I use docling as a python library and send my documents to it. I use tesseract as OCR engine, both run on CPU.
However now really large OCR-docs run into this error:
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=xx): Read timed out. (read timeout=600.0)
I understand, that it is on a page base so the pages in the docs take longer than 10 minutes each, which would be okay for my use-case. How can I adapt this timeout value to be larger when using docling as a library?
(or turn it off at best?)
Contributor guide
Research direction
No file, test, or entry point is named. Start by locating the library path that sets the 600-second HTTP read timeout for Tesseract OCR, then reproduce it with a large CPU-processed document. Done means library users can configure a larger timeout or disable it, with coverage for the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100