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

🚀 [Feature]: Middleware with context withTimeout #2088

Closed
3 tasks done
hakankutluay opened this issue Sep 14, 2022 · 2 comments · Fixed by #2090
Closed
3 tasks done

🚀 [Feature]: Middleware with context withTimeout #2088

hakankutluay opened this issue Sep 14, 2022 · 2 comments · Fixed by #2090

Comments

@hakankutluay
Copy link
Contributor

Feature Description

Need timeout support on long-running operations like Db, HTTP calls, etc. timeout middleware does not support cancellation with context and also has race conditions.

Additional Context (optional)

Let's think about a situation, a DB operation may take a long time. When we limit a timeout, It should also cancel the DB operations if the timeout limit exceeds.

Code Snippet (optional)

No response

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my suggestion prior to opening this one.
  • I understand that improperly formatted feature requests may be closed without explanation.
@welcome
Copy link

welcome bot commented Sep 14, 2022

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

@efectn
Copy link
Member

efectn commented Sep 14, 2022

Free feel to contribute 🚀

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

Successfully merging a pull request may close this issue.

2 participants