Repository navigation
receiver: wait longer for the Upload after an accepted Ask - #33
Merged
Merged
Conversation
A sender sends its Upload on the Ask's connection once the Ask is answered. The wait for that request used the 30 s idle limit that covers every socket read, so an Upload delayed by a poor AWDL link was closed as "Request timed out" while the sender was still trying. An accepted Ask that expects an Upload now waits UPLOAD_WAIT_SECONDS (60 s) for the next request to begin. A links Ask is the whole transfer and keeps the idle limit. The next request's first byte restores READ_IDLE_TIMEOUT_SECONDS, so a request line, headers or body that stall are held to the idle limit, and the upload slot is still taken only when the body is read. A wait that runs out logs "no Upload within 60 s of an accepted Ask" instead of the line an idle connection gets after a finished transfer. Reported-by: Aleck Loiselle <[email protected]>
The Ask test already checks for it; Discover sends the same key.
brentkearney
force-pushed
the
feat/upload-wait
branch
from
October 11, 2026 18:30
a358654 to
0f8f7a5
Compare
Revoxandco
pushed a commit
to Revoxandco/omdrop-plugin
that referenced
this pull request
Oct 18, 2026
manifest.json and VERSION_FALLBACK move to 0.16.0. Since 0.15.1: radio backends other than omdrop-awdl (netmojo-systems#25), the captured media capabilities and IsAirDropable (netmojo-systems#20), a scoped Upload wait (netmojo-systems#33), the Qt 6.12 palette fix (netmojo-systems#42), and hardware-neutral docs and marketplace name (netmojo-systems#43). The driver pin stays at omdrop-awdl 0.9.1, the latest 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.
Give accepted file transfers a dedicated wait for Upload.
Replaces the timeout proposal in #20.
Verification
Reported in #20 by @aleckloiselle.