Closed
Description
What version of Go are you using (go version
)?
$ go version $ go version go1.16.5 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/a.eremeev/Library/Caches/go-build" GOENV="/Users/a.eremeev/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/a.eremeev/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/a.eremeev/go" GOPRIVATE="stash.mail.ru/scm,gitlab.corp.mail.ru" GOPROXY="https://proxy.golang.org,direct" GOROOT="/Users/a.eremeev/brew/Cellar/go/1.16.5/libexec" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/Users/a.eremeev/brew/Cellar/go/1.16.5/libexec/pkg/tool/darwin_amd64" GOVCS="" GOVERSION="go1.16.5" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/dev/null" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/0k/19q3g2wx6zlc98ftvxnpq5b80000gp/T/go-build1670355217=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
https://play.golang.org/p/8Za_9D3QqXC
I've sent http request with Keep Alive enabled(IdleConnTimeout = 90s) to server with ReadHeaderTimeout = 3s.
What did you expect to see?
no connection close
What did you see instead?
connection closed after 3s from last request