Skip to content

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

@abs0luty abs0luty force-pushed the master branch 2 times, most recently from 22d6d92 to c8a3df6 Compare November 16, 2025 17:44
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