too slow in multipart usage when use http/2 proto

Open
#3,499 0 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
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust

Research direction

No source file or test is named. Start with the multipart example and the bind_rustls_0_23 server setup, then reproduce the Chrome upload on Ubuntu with HTTP/1 and HTTP/2 to compare the slowdown. Done means the HTTP/2 multipart upload no longer shows the reported performance difference.

Written by the indexing model from the issue text.

Description

Your issue may already be reported! Please search on the Actix Web issue tracker before creating one.

Expected Behavior

post multipart data is fast when use http/2 proto

Current Behavior

upload file usage:

post multipart data is fast when use http/1 proto

but too slow when use http/2 proto

Possible Solution

Steps to Reproduce (for bugs)

  1. copy multipart example
  2. write a html form page to upload a file
  3. generate self signed certs, use bind_rustls_0_23 to run server
  4. use chrome to upload

Context

Your Environment

ubuntu 24.04 amd64

  • Rust Version (I.e, output of rustc -V): 1.82.0
  • Actix Web Version: 4.9.0
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.