You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What does 'go version' print? go version go1.2.1 linux/amd64
What steps reproduce the problem?
1. Call DumpRequestOut.
2. No step 2.
See example code written by a colleague here: http://play.golang.org/p/XhkiOmdHPv
What happened?
After running DumpRequestOut, two goroutines end up sticking around. So after 1000 calls
to DumpRequestOut, the goroutines will include:
1000 @ 0x4173e6 0x404be2 0x405028 0x453194 0x4175b0
# 0x453194 net/http.(*persistConn).readLoop+0x2f4 /usr/local/go/src/pkg/net/http/transport.go:701
1000 @ 0x4173e6 0x4059e4 0x405632 0x453b81 0x4175b0
# 0x4059e4 selectgo+0x384 /usr/local/go/src/pkg/runtime/chan.c:996
# 0x405632 runtime.selectgo+0x12 /usr/local/go/src/pkg/runtime/chan.c:840
# 0x453b81 net/http.(*persistConn).writeLoop+0x271 /usr/local/go/src/pkg/net/http/transport.go:791
What should have happened instead? No additional goroutines.
Fix? I think DumpRequestOut is missing a t.CloseIdleConnections()
The text was updated successfully, but these errors were encountered:
The problem is not solved, see test code: http://play.golang.org/p/D77HaPiS_3
we can still see 10 can receive block at
0x9f920 net/http.(*persistConn).readLoop+0x420 /tmp/sandbox/go/src/pkg/net/http/transport.go:798
by ben@extrahop.com:
The text was updated successfully, but these errors were encountered: