improve e2e port allocator (#3882)

This commit is contained in:
fatedier
2023-12-21 22:46:08 +08:00
committed by GitHub
parent 5b7b81a117
commit 256b87321d
6 changed files with 22 additions and 21 deletions

View File

@@ -79,6 +79,7 @@ func (pa *Allocator) GetByName(portName string) int {
udpConn.Close()
pa.used.Insert(port)
pa.reserved.Delete(port)
return port
}
return 0