improve e2e port allocator (#3882)

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

No files matched your search

+1
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