Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8a625029
Commit
8a625029
authored
Dec 07, 2011
by
antirez
Browse files
Redis test port allocation fixed.
parent
8a6b21da
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
8a625029
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment