FAQ
I don't think you're looking at the right goroutines here. Usually the
`panic: message` line is first, followed by the stack trace. For example,
the following two stacks are in [select], but neither of those select cases
include a send operation, and can't be source of the "panic: send on a
closed channel".

Is this really the output you see at the top of the stack trace? Are you
recovering from any panics in your code already? Feel free to send me a
full stack trace off-list if you want.


goroutine 1494 [select]:
net/http.(*persistConn).writeLoop(0xc2086722c0)
/root/.gvm/gos/go1.4rc2/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
/root/.gvm/gos/go1.4rc2/src/net/http/transport.go:661 +0xcbc
panic: send on closed channel

goroutine 2604 [select]:
net/http.(*persistConn).readLoop(0xc209c62bb0)
/root/.gvm/gos/go1.4rc2/src/net/http/transport.go:928 +0x9ce
created by net/http.(*Transport).dialConn
/root/.gvm/gos/go1.4rc2/src/net/http/transport.go:660 +0xc9f
panic: send on closed channel

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 13 of 15 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJan 19, '15 at 4:38p
activeJan 21, '15 at 3:59p
posts15
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase