Merge pull request #7559 from LK4D4/fix_udp_proxy_deadlock

Fix deadlock on failed dial in UDP userland proxy
This commit is contained in:
Michael Crosby 2014-08-13 11:11:09 -07:00
commit 1c5a4e0900
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ func (proxy *UDPProxy) Run() {
proxyConn, err = net.DialUDP("udp", nil, proxy.backendAddr)
if err != nil {
log.Printf("Can't proxy a datagram to udp/%s: %s\n", proxy.backendAddr, err)
proxy.connTrackLock.Unlock()
continue
}
proxy.connTrackTable[*fromKey] = proxyConn