Skip to content

grahamc/rustc-1-88-0-broke-my-http-client-on-intel-macs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upgrading to Rust 1.88.0 broke my HTTP client on x86_64-darwin!

Repro the bad

In one terminal, run:

nc -l 6789

In another terminal, run:

nix develop --system x86_64-darwin --command cargo run

Observe an invalid request is received by nc:

GET /
host: 127.0.0.1:6789

Demonstrate the good

Edit Cargo.toml to set opt-level = 1 for the dev profile.

In one terminal, run:

nc -l 6789

In another terminal, run:

nix develop --system x86_64-darwin --command cargo run

Observe a valid request is received by nc:

GET / HTTP/1.1
host: 127.0.0.1:6789

About

Upgrading to Rust 1.88.0 broke my HTTP client on x86_64-darwin!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published