Commit dfcf5a0a authored by antirez's avatar antirez
Browse files

Redis test port allocation fixed.

parent 85b69afe
...@@ -153,9 +153,9 @@ proc cleanup {} { ...@@ -153,9 +153,9 @@ proc cleanup {} {
proc find_available_port start { proc find_available_port start {
for {set j $start} {$j < $start+1024} {incr j} { for {set j $start} {$j < $start+1024} {incr j} {
if {[catch { if {[catch {
set fd [socket 127.0.0.1 $start] set fd [socket 127.0.0.1 $j]
}]} { }]} {
return $start return $j
} else { } else {
close $fd close $fd
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment