Hi : 
   as the topic, did anyone met this problem before? I set http client 
timeout for 2 second, generally It works fine. But sometimes It blocked for 
more than 4 minutes ,even 14minutes. The goroutines keeps inc as many 
requests come in. After that block time  all request return this error. I 
think it's dns lookup block. But I try to make my http client lookup my own 
DNS server which sleep 1 minute for each dns request, the client always 
returns in timeout. I can't reproduce the bug. It appears randomly on my 
online APP.
client:=http.Client{Timeout:2*time.Second}
client.Get("https://xxxxxx";)





-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to