8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40bdc4a commit 803c25eCopy full SHA for 803c25e
server.go
@@ -2789,6 +2789,7 @@ func (ctx *RequestCtx) Value(key any) any {
2789
}
2790
2791
var fakeServer = &Server{
2792
+ done: make(chan struct{}),
2793
// Initialize concurrencyCh for TimeoutHandler
2794
concurrencyCh: make(chan struct{}, DefaultConcurrency),
2795
server_test.go
@@ -4414,3 +4414,13 @@ func TestRequestBodyStreamReadIssue1816(t *testing.T) {
4414
t.Fatal(err)
4415
4416
4417
+
4418
+func TestRequestCtxInitShouldNotBeCanceledIssue1879(t *testing.T) {
4419
+ var r Request
4420
+ var requestCtx RequestCtx
4421
+ requestCtx.Init(&r, nil, nil)
4422
+ err := requestCtx.Err()
4423
+ if err != nil {
4424
+ t.Fatal(err)
4425
+ }
4426
+}
0 commit comments