mirror of
https://github.com/fluencelabs/redis
synced 2025-04-26 19:12:14 +00:00
Redis test port allocation fixed.
This commit is contained in:
parent
85b69afede
commit
dfcf5a0ac8
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user