Repository navigation
fix(classify): set timeouts on PDF uploads - #720
Closed
DivyamTalwar wants to merge 1 commit into
Closed
DivyamTalwar wants to merge 1 commit into
DivyamTalwar wants to merge 1 commit into
Conversation
Merged
4 tasks done
Member
|
Thanks @DivyamTalwar. #733 covers the Page Classify upload too (and Page Split), so I'm closing this one. Same reason as in #716: a 30 s connect timeout caps sending the whole file and would fail a large PDF on a slow line. It's on main and ships in the next release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Starting Page Classify with a PDF uses a multipart
POST /classify/. That request could wait indefinitely for a response after the server received the upload. Give it a 30-second connection timeout and a 600-second read timeout, consistent with the upload defaults in #716 for the separate/doc/route.These settings apply to the upload request. Classification-job polling has its own
timeoutsetting, and classification of an existing document ID keeps its existing request behavior.Validation
ReadTimeoutafter just one POST without polling.git diff --checkpasses.