Skip to content

net/http2: "http2: stream closed" on medium file #38247

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

Closed
zoic21 opened this issue Apr 4, 2020 · 3 comments
Closed

net/http2: "http2: stream closed" on medium file #38247

zoic21 opened this issue Apr 4, 2020 · 3 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@zoic21
Copy link

zoic21 commented Apr 4, 2020

What version of Go are you using (go version)?

$ go version
go version go1.14.1 linux/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="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build656777711=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I used http2 to tunneling connexion between client and server (based on https://github.com/mmatczuk/go-http-tunnel project, with some change like used last version of goland http2). When client is based on aarch64 (I can't reproduce on x86_64 for now) and file to transfert size is medium size (~200ko) connexion is cut and I get "http2: stream closed". It's transfert only about first 129ko.

What did you expect to see?

Transfert file completly

What did you see instead?

Only first 129ko

Maybe it's just a buffer size to tweak for my usage but I'am not sure.

Thank in advance

@zoic21
Copy link
Author

zoic21 commented Apr 6, 2020

For information if I revert to golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e problem disapear

@andybons
Copy link
Member

andybons commented Apr 6, 2020

Can you post example code (preferably a minimal example)? d3edc9973b7e is the latest commit on x/net. When you say “revert” do you mean upgrade to use the latest x/net in the go distribution you’re using?

@andybons andybons added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Apr 6, 2020
@andybons andybons added this to the Unplanned milestone Apr 6, 2020
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants