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

I cannot use the official Timeout middleware. #390

Closed
Chacix opened this issue Aug 7, 2024 · 6 comments
Closed

I cannot use the official Timeout middleware. #390

Chacix opened this issue Aug 7, 2024 · 6 comments

Comments

@Chacix
Copy link

Chacix commented Aug 7, 2024

Usage is as follows

image
@fafhrd91
Copy link
Member

fafhrd91 commented Aug 7, 2024

you need to add .service() or .finish()

@Chacix
Copy link
Author

Chacix commented Aug 7, 2024

you need to add .service() or .finish()

work prefectly
image

not working
image

I don't know where to add it. I think maybe it's not about the method (.service() or .finish()).
There isn't much code; you can try it. :)

@fafhrd91
Copy link
Member

fafhrd91 commented Aug 7, 2024

interesting, i will check

@Chacix
Copy link
Author

Chacix commented Aug 10, 2024

interesting, i will check

Hey! How is it going?

@fafhrd91
Copy link
Member

I reviewed implementation. unfortunately, it is not possible to use generic Timeout middleware with web::App.

I will try to come up with solution in next couple days

@fafhrd91
Copy link
Member

fixed in ntex-v2.3.0

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

No branches or pull requests

2 participants