-
Notifications
You must be signed in to change notification settings - Fork 360
[QUESTION] When I create a sentinel of redis-plus-plus, an exception is raised #342
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
Comments
Since redis-plus-plus might throw exceptions, you should always try-catch possible exceptions in your code.
Please show me the error message of the exception. So that I can be more helpful. Regards |
Thank you for the reply @sewenew . |
I will go back to the beginning and try again from hiredis cmake build to redis-plus-plus cmake build. |
You got a I cannot reproduce your problem with Win 10 and Visual Studio 2019. It seems that you might not install redis-plus-plus correctly. Please try to recompile redis-plus-plus and reinstall it. I'm not familiar with Visual Studio, but you might need to check the Configuration Manager, if those options, e.g. x64-Release, match for hiredis, redis-plus-plus, and your application code. Regards |
I will try again. |
Since there's no update, I'll close this issue. Regards |
Hello, I think I ran into the same problem under Linux system. the source code: int main(void)
} gdb tells: Environment: OS: Linux debian 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux Something goes wrong in the destructer of ~ConnectionOptions()? |
@MrStack I cannot reproduce the problem with the code you given. The destructor of ConnectionOptions is quite simply, since it only contains some built-in types and STL types as data member. Also, please check if you installed multiple version of hiredis? If you do, you might get some wired problems. Regards |
I think I know what the problem is. Maybe something goes wrong with the tls. I just substitude the no_tls/tls.h when the compiler complains, then the error vanished. |
@MrStack When building redis-plus-plus, did you enabled TLS support? If you did, you should build hiredis with TLS support, and linking your application code with both libhiredis and libhiredis_ssl. Otherwise, the behavior is undefined.
no_tls/tls.h is used when TLS is disabled, otherwise, tls/tls.h is used. Regards |
Describe the problem
I am trying to use the redis sentinel function.
When I create a sentinel of redis-plus-plus, an exception is raised.
Exception occurs when Sentinel is created as shown in the code below.

Exceptions are as follows.

Please check.
Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: