Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]Error while serving HTTP connection: early eof #104

Closed
Baiyuetribe opened this issue Dec 3, 2023 · 7 comments
Closed

[BUG]Error while serving HTTP connection: early eof #104

Baiyuetribe opened this issue Dec 3, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@Baiyuetribe
Copy link
Contributor

Reproduce

https://github.com/viz-rs/viz/blob/main/examples/static-files/embed/src/main.rsv
add a.txt file to public dir. this file with some word,size 1kb or more.
cargo run --bin embed
run this demo, then quick request url. It will cause a reboot serve
http://127.0.0.1:3000/static/a.txt

Logs

Error while serving HTTP connection: early eof
Error while serving HTTP connection: early eof

Expectations

This bug should not occur in the main application, as it will cause other connections that are being requested to fail

@Baiyuetribe
Copy link
Contributor Author

Baiyuetribe commented Dec 3, 2023

both of embed and serve will trigger this error.

@fundon fundon added the bug Something isn't working label Dec 3, 2023
@fundon
Copy link
Member

fundon commented Dec 3, 2023

Thanks, I will check it.

@fundon
Copy link
Member

fundon commented Dec 3, 2023

Can you help with the test?
The commit is df8deec

@Baiyuetribe
Copy link
Contributor Author

Thanks, both embed and serve works now. 😊

@Baiyuetribe
Copy link
Contributor Author

@fundon This fault has come up.
After we have made several requests in a row, wait about 1 minute and it will be reproduced when refreshed

@Baiyuetribe Baiyuetribe reopened this Dec 3, 2023
@fundon
Copy link
Member

fundon commented Dec 3, 2023

How do you test it? Can you share it?

@Baiyuetribe
Copy link
Contributor Author

Baiyuetribe commented Dec 3, 2023

Reproduce

https://github.com/viz-rs/viz/blob/main/examples/static-files/embed/src/main.rs
add a.txt file to public dir. this file with some word,size 1kb or more.
cargo run --bin embed
run this demo,
http://127.0.0.1:3000/static/a.txt

After the first request, wait one minute to request again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants