I hope this isn't a duplicate issue but:
I have a number of goroutines that each download a url. After a certain
cutoff point (a timeout), main code execution moves on, leaving goroutines
that didn't finish basically hanging.
Doing this, I'm getting:
created by net/http.(*Transport).dialConn
panic: send on closed channel
I found an SO that suggests that resp.Body is probably causing the issue:
But the SO doesn't specify the best way to fix this.
Is reading resp.Body the likely source of error?
What would be the best way to handle this?
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.