-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
HTTP server close connection with no response #4480
Labels
Milestone
Comments
tested with go1 version on ubuntu (last one) and i have a panic from the client: net._Cfunc_CString(0x193d8047, 0x9, 0x0, 0x0) /tmp/go-build054638397/net/_obj/_cgo_defun.c:31 +0x2a net.cgoLookupIPCNAME(0x193d8047, 0x9, 0x0, 0x0, 0x0, ...) /tmp/go-build054638397/net/_obj/_cgo_gotypes.go:175 +0xa0 net.cgoLookupIP(0x193d8047, 0x9, 0x0, 0x0, 0x0, ...) /tmp/go-build054638397/net/_obj/_cgo_gotypes.go:223 +0x3d net.cgoLookupHost(0x193d8047, 0x9, 0x0, 0x0, 0x0, ...) /tmp/go-build054638397/net/_obj/_cgo_gotypes.go:101 +0x40 net.lookupHost(0x193d8047, 0x9, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/lookup_unix.go:56 +0x3d net.LookupHost(0x193d8047, 0x9, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/doc.go:10 +0x3d net.hostPortToIP(0x81a4648, 0x3, 0x193d8047, 0xe, 0x0, ...) /usr/lib/go/src/pkg/net/ipsock.go:120 +0x183 net.ResolveTCPAddr(0x81a4648, 0x3, 0x193d8047, 0xe, 0x0, ...) /usr/lib/go/src/pkg/net/tcpsock.go:31 +0x37 net.resolveNetAddr(0x81a6d04, 0x4, 0x81a4648, 0x3, 0x193d8047, ...) /usr/lib/go/src/pkg/net/dial.go:50 +0x35d net.Dial(0x81a4648, 0x3, 0x193d8047, 0xe, 0x0, ...) /usr/lib/go/src/pkg/net/dial.go:92 +0x44 net/http.(*Transport).dial(0x193d9000, 0x81a4648, 0x3, 0x193d8047, 0xe, ...) /usr/lib/go/src/pkg/net/http/transport.go:299 +0xa6 net/http.(*Transport).getConn(0x193d9000, 0x193d80c0, 0x193d80c0, 0x0) /usr/lib/go/src/pkg/net/http/transport.go:311 +0xa7 net/http.(*Transport).RoundTrip(0x193d9000, 0x193da000, 0x193d80a0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/transport.go:155 +0x23b net/http.send(0x193da000, 0x18836d80, 0x193d9000, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:133 +0x325 net/http.(*Client).doFollowingRedirects(0x193d8020, 0x193da000, 0x0, 0x0, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:227 +0x568 net/http.(*Client).Get(0x193d8020, 0x193d8040, 0x16, 0x81a4b74, 0x0, ...) /usr/lib/go/src/pkg/net/http/client.go:176 +0x86 main.doRequest(0x193d8020, 0x115, 0x193d9000) /home/cornel/Dropbox/work/go/tests/clienttest.go:28 +0x69 main.requestRoutine() /home/cornel/Dropbox/work/go/tests/clienttest.go:62 +0x115 created by main.main /home/cornel/Dropbox/work/go/tests/clienttest.go:74 +0x5d |
I think you're either running out of file descriptors or your CustomDial's 300 second deadline is happening. (maybe you thought that meant 5 minutes of inactivity... it doesn't. It means fail in 5 minutes) The DNS lookup problem is probably issue #3575. I see nothing to fix here. Status changed to Invalid. |
The panic is from client, this problem is from go 1.0.3, in 1.0.2 this is not reproducing. The bug is not about the client, it's about the server. You can reproduce this without using the clienttest, you can use ab (ab -n 100000 -c 2000 http://localhost:8080/) and servertest.go to reproduce the Connection reset by peer. If you need other info or explanations let me know. |
Comment 5 by cdamian-akela@kds.com: please be sure that you have enough file descriptors |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by bart2yk:
Attachments:
The text was updated successfully, but these errors were encountered: