Skip to content

receiver: wait longer for the Upload after an accepted Ask - #33

Merged
brentkearney merged 2 commits into
mainfrom
feat/upload-wait
Oct 11, 2026
Merged

brentkearney merged 2 commits into
mainfrom
feat/upload-wait

Conversation

@brentkearney

Copy link
Copy Markdown
Collaborator

Give accepted file transfers a dedicated wait for Upload.

  • Wait 60 seconds for the next request to begin after an accepted Ask, providing margin over the reported 45-second sender wait.
  • Restore the 30-second idle timeout when request data arrives, including buffered data.
  • Keep links and completed transfers on the ordinary idle timeout, and acquire upload slots during Upload handling.
  • Log an expired Upload wait distinctly.

Replaces the timeout proposal in #20.

Verification

  • Regression covers delayed Upload, links, completed transfers, and a stalled partial request line.
  • Full suite: 201 tests pass.

Reported in #20 by @aleckloiselle.

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
brentkearney merged commit 7b3f60c into main Oct 11, 2026
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.
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