提交 dfcf5a0a 编写于 作者: A antirez

Redis test port allocation fixed.

上级 85b69afe
......@@ -153,9 +153,9 @@ proc cleanup {} {
proc find_available_port start {
for {set j $start} {$j < $start+1024} {incr j} {
if {[catch {
set fd [socket 127.0.0.1 $start]
set fd [socket 127.0.0.1 $j]
}]} {
return $start
return $j
} else {
close $fd
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册