Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

DefaultBodyLimit closing socket #1703

Closed
1 task done
robko23 opened this issue Jan 18, 2023 · 0 comments
Closed
1 task done

DefaultBodyLimit closing socket #1703

robko23 opened this issue Jan 18, 2023 · 0 comments

Comments

@robko23
Copy link

robko23 commented Jan 18, 2023

  • I have looked for existing issues (including closed) about this

Bug Report

Version

├── axum v0.6.2
│ ├── axum-core v0.3.1
│ ├── axum-macros v0.3.1 (proc-macro)

Platform

Linux home-workstation 6.0.12-300.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 8 16:58:47 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Description

When I have the default server without any further modifications

axum::Server::bind(&addr)
    .serve(app.into_make_service())
    .with_graceful_shutdown(Self::shutdown_signal())
    .await.unwrap();

And send more than 2MB request body, it just closes the socket without any response and nothing in the log. I would expect either http response 413 Payload Too Large or warning in the log, or both.

Is this a bug or is it intended behaivor? I was debugging this way longer than I'd expected to.

Thanks

@tokio-rs tokio-rs locked and limited conversation to collaborators Jan 18, 2023
@davidpdrsn davidpdrsn converted this issue into discussion #1704 Jan 18, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant