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

New example setting a header read timeout #122

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

josecelano
Copy link

I'm trying to build an example where the connection is automatically closed after 5 seconds.

It's not working.

I was able to do it directly with hyper with the echo example in the hyper repo.

Here are the changes I made to that example. I guess there must be a way to apply the same changes using axum-server.

In this example, I'm using the hyper_util::rt::TokioTimer. The hyper example uses

https://github.com/josecelano/hyper/blob/master/benches/support/tokiort.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant