> My actual query was to learn how the removal of the broken connection is 
done.

Ah OK.  I'm not familiar with this code (net/http/transport.go), and you've 
already shown that the PutIdleConn trace action isn't called.  Maybe this 
comment is helpful:

                        if pconn.isBroken() || tooOld {
                                // If either persistConn.readLoop has 
marked the connection
                                // broken, but Transport.removeIdleConn has 
not yet removed it
                                // from the idle list, or if this 
persistConn is too old (it was
                                // idle too long), then ignore it and look 
for another. In both
                                // cases it's already in the process of 
being closed.
                                list = list[:len(list)-1]
                                continue
                        }

Otherwise someone else can answer more specifically.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/613e3778-7892-4ab9-8cc8-6db1a3e8f966n%40googlegroups.com.

Reply via email to