You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if {$::tls} {
set s [::tls::socket [srv 0 host] [srv 0 port]]
} else {
set s [socket [srv 0 host] [srv 0 port]]
}
puts -nonewline $s $seq
set payload [string repeat A 1024]"\n"
set test_start [clock seconds]
set test_time_limit 30
while 1 {
if {[catch {
puts -nonewline $s payload
flush $s
incr payload_size [string length $payload]
}]} {
set retval [gets $s]
close $s
break
} else {
set elapsed [expr {[clock seconds]-$test_start}]
if {$elapsed > $test_time_limit} {
close $s
error "assertion:Valkey did not closed connection after protocol desync"
}
}
}
set retval
the test write null "\x00" to the server and then write a lot of "payload" string.
then get the error "-ERR Protocol error: too big inline request\r\n"
it will also fail the same without sending any of the \x00 character.
we should choose from:
fix the test
fix the \x00 behaviour as excpected
remove the test
The text was updated successfully, but these errors were encountered:
this is the test:
the test write null "\x00" to the server and then write a lot of "payload" string.
then get the error "-ERR Protocol error: too big inline request\r\n"
it will also fail the same without sending any of the \x00 character.
we should choose from:
The text was updated successfully, but these errors were encountered: