Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
dfcf5a0a
Commit
dfcf5a0a
authored
Dec 07, 2011
by
antirez
Browse files
Redis test port allocation fixed.
parent
85b69afe
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
dfcf5a0a
...
...
@@ -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
}
...
...
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