Tolerate slow large-job uploads on small-buffer printers - #94
Merged
Conversation
This was referenced Sep 3, 2026
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
-19instead of folding it into the generic send failureWhy
In #91, the Canon TS8360 accepts a five-page duplex PWG Raster document but a 36-page document prints only the first page and part of the second. MintPRINT already streams the file in small writes and TCP supplies back-pressure, but driver 41.17 abandons any write which cannot make progress for 20 seconds. A small printer receive buffer can fill during a long raster job while the printer processes a page, creating exactly that pause.
This change keeps the bounded-send protection introduced for genuinely hung printers. It only lengthens the allowed stall for document data; connection setup, IPP headers and the final response remain tightly bounded.
Beta test for #91
T:MintPRINT-driver.logand the retained.statussidecar. Error-19plusbytes sent/totalwill show exactly where the Canon stopped draining the connection.A View Spooler Retry uses the copy of
ipp_client.clinked into MintPrintSettings, so testing Retry specifically requires the beta Settings executable as well as the beta driver. Reprinting from WordWorth tests the driver change directly.Refs #91.