-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
🐛 [Bug-Fix] add original timeout middleware #2367
🐛 [Bug-Fix] add original timeout middleware #2367
Conversation
Sad but that will introduce a breaking change who uses timeout middleware after v2.38.1 |
@hakankutluay thx for the last commit, can you also add some hint in the documentation pages |
@ReneWerner87, |
@hakankutluay Can you fix the conflicts with the MD file |
@gaby sure, done! |
currently do not know what to do with the pull request we should definitely provide a more stable version, just because of the limitation in fasthttp i guess it will take a few more releases now the question if the current customization should merge or not: also feel free to share further comments |
@ReneWerner87 I support having middleware that supports context timeout as another middleware by merging this commit. I still defend having context cancelation (the new timeout middleware) has much more valid use cases on production than supporting just After this merge, we could try to fix the original timeout middleware's race condition problem. But my concern is this
|
we will simply draw attention to it in the release notes the others who switched to the context usage have our release notes in mind and should see that too we can not fulfill both requirements at the same time, this undo is for me more like a bugfix for the old behavior |
@ReneWerner87 @hakankutluay Agree with both statements. The sooner the change happens the better. |
Description
Middleware that was added on #2090, is renamed as
timeout.NewWithContext
to not break the original timeout middleware.Fixes #2364
Please delete options that are not relevant.
Checklist: