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
4bb1ccc6
Commit
4bb1ccc6
authored
Jul 28, 2011
by
antirez
Browse files
Regression for a crash with blocking ops and pipelining
parent
47cadab4
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/protocol.tcl
View file @
4bb1ccc6
...
@@ -60,3 +60,19 @@ start_server {tags {"protocol"}} {
...
@@ -60,3 +60,19 @@ start_server {tags {"protocol"}} {
assert_error
"*wrong*arguments*ping*"
{
r ping x y z
}
assert_error
"*wrong*arguments*ping*"
{
r ping x y z
}
}
}
}
}
start_server
{
tags
{
"regression"
}}
{
test
"Regression for a crash with blocking ops and pipelining"
{
set rd
[
redis_deferring_client
]
set fd
[
r channel
]
set proto
"*3
\r\n\$
5
\r\n
BLPOP
\r\n\$
6
\r\n
nolist
\r\n\$
1
\r\n
0
\r\n
"
puts -nonewline $fd $proto$proto
flush $fd
set res
{}
$rd rpush nolist a
$rd read
$rd rpush nolist a
$rd read
}
}
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