merlimat commented on a change in pull request #157: [issue:144] Add retry
logic when get connection error
URL: https://github.com/apache/pulsar-client-go/pull/157#discussion_r362985749
##########
File path: pulsar/internal/connection_pool.go
##########
@@ -65,7 +65,7 @@ func (p *connectionPool) GetConnection(logicalAddr *url.URL,
physicalAddr *url.U
return cnx, nil
}
// The cached connection is failed
- p.pool.Delete(logicalAddr.Host)
+ p.pool.Delete(fmt.Sprintf("%s:%v", logicalAddr.Host,
connectingThroughProxy))
Review comment:
This was a problem in the #146. It's being fixed in #161 .
The fix is not relevant in this PR which is changing a different aspect.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services