awc deadlock on some network connections

Open
#3,382 8 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
networking

Research direction

Start with the download use in SQLpage's build.rs and inspect the attached awc.zip packet capture alongside awc's request and timeout behavior. Reproduce the hang on an affected network and compare it with a working connection; done means the same download no longer leaves awc waiting indefinitely.

Written by the indexing model from the issue text.

Description

needs-investigation

Hello and thank you for this project !

I am reporting a bug that is hard to reproduce, so feel free to close it if needed.
I have a build script that downloads data using awc: https://github.com/lovasoa/SQLpage/blob/v0.21.0/build.rs
It works well most of the time. But on some network connections, it systematically falls into a deadlock. No timeout is ever reached, awc simply never returns. It really depends only on the network connection being used, and on the networks that fail, I can download the same files using a web browser or curl without issues.
I'm joining a network packet capture realized while awc was locked: awc.zip

Dominant language
Rust
Stars
24.9k
Forks
2k
Avg merge
19h 9m
Merged PRs (30d)
61

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actix/actix-web

All issues in actix/actix-web

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.