Skip to content

Fix poll functions on sockets not properly registering the waker. - #2535

Open
davidv1992 wants to merge 1 commit into
mainfrom
timestamped-socket-poll-waker
Open

davidv1992 wants to merge 1 commit into
mainfrom
timestamped-socket-poll-waker

Conversation

@davidv1992

Copy link
Copy Markdown
Member

When poll_x_ready returned ready, but the try_io function failed with a wouldblock error, we would return std::task::Poll::Pending without properly registering the waker. Retrying the operation as a whole in that case is a better way to ensure the waker does get registered.

When poll_x_ready returned ready, but the try_io function failed with a
wouldblock error, we would return std::task::Poll::Pending without
properly registering the waker. Retrying the operation as a whole in
that case is a better way to ensure the waker does get registered.
@codecov

codecov Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 30.00000% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.59%. Comparing base (d89fbb3) to head (17af724).

Files with missing lines Patch % Lines
timestamped-socket/src/socket.rs 30.00% 28 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2535      +/-   ##
==========================================
- Coverage   79.60%   79.59%   -0.02%     
==========================================
  Files         134      134              
  Lines       27020    27025       +5     
==========================================
+ Hits        21509    21510       +1     
- Misses       5511     5515       +4     
Flag Coverage Δ
test-aarch64-apple-darwin 81.24% <0.00%> (-0.02%) ⬇️
test-x86_64-unknown-linux-gnu 79.49% <30.00%> (-0.02%) ⬇️
test-x86_64-unknown-linux-musl 79.63% <30.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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