net/http/fcgi: deadlock during write (regression in 1.16beta1) #43901
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
This is a regression in 1.16beta1 introduced via https://go-review.googlesource.com/c/go/+/252417
It would be fixed by https://go-review.googlesource.com/c/go/+/275692
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When using fcgi behind nginx, writes to the
ResponseWriter
block because a mutex is still held by the goroutine serving the fcgi-child (https://github.com/golang/go/blob/master/src/net/http/fcgi/child.go#L174).main.go:
nginx.conf:
For a full, runnable example see fcgi_regression.zip
What did you expect to see?
What did you see instead?
The server blocks and nginx returns a
504 Gateway Timeout
after some time.The text was updated successfully, but these errors were encountered: