-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Context is canceled on a newly initialized fasthttp.RequestCtx in 1.56.0 #1879
Comments
I am seeing the same issue. Reverting to 1.55 solves the issue. done <- struct{}{} This line signals the task is done, resulting in a cancelled context Fix: done := ctx.s.done
if done == nil {
done = make(chan struct{})
}
return done unfamiliar with the original issue though. |
@dza89 This change is to address the #1662 issue,Now the semantics of the Err function need to be reconsidered. |
Create done channel in fakeServer during the initialization of newRequestCtx to prevent the done channel from being nil
Should be fixed in #1890, I'll publish a release tomorrow. |
Thank you! |
Graat work, thanks a lot! |
Given the following code, a "context canceled" error is printed out in 1.56.0 but not 1.55.0.
I was able to bisect this to a7d488a.
We use code similar to this in our tests to create a
fasthttp.RequestCtx
to pass to the handler. This code has been working unchanged for many years.The text was updated successfully, but these errors were encountered: