New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ndb_redis: redis_cmd() doesn't return error with a faulty command #2300
Comments
I don't get exactly what you report here: is a problem with the kamailio code or a strange value for type field in the redis reply. Because that redis reply structure is what redisvCommand() returns. Any further details about the issue itself? |
I would say our code is doing something wrong since the same command using redisvCommand() in my simple test code works as expected, returning an error reply type not an integer. |
I will try to explain, "HSET dd field" is missing the value parameter and it's a faulty command, it must fail.
|
First I was not sure that you report the redis_cmd() is not returning false (negative) in such case, or the Then we use the same hiredis function to get the response:
Strange that gets different results on your system. Have you compiled the ndb_redis module where you did the test example, or is it from debian packages? |
both are using the same library from buster: |
Description
Detected that a command like this was not returning <0
Same command on redis-cli:
Troubleshooting
Reproduction
I've added some debug to the code and I find out that the command is returning:
That's an INTEGER. From hiredis/read.h:
I've created a simple test code to check the same command:
No problems there. The reply is ERROR.
Additional Information
kamailio -v
The text was updated successfully, but these errors were encountered: