Skip to content
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

Disconnected #265

Closed
244916896 opened this issue Sep 3, 2021 · 6 comments
Closed

Disconnected #265

244916896 opened this issue Sep 3, 2021 · 6 comments

Comments

@244916896
Copy link

I connect redis in the running program. When I use it in the dynamic library, the connection is gone。I don't know if you have experienced it. Please help. Thank you!

@244916896
Copy link
Author

I am on the Linux platform. The main program calls the dynamic library through dlopen、dlsym

@sewenew
Copy link
Owner

sewenew commented Sep 3, 2021

Can you show me a minimum compilable code that can reproduce the problem? Also please tell me which version of redis-plus-plus and hiredis are you using?

B.T.W what do you mean the connection is gone?

Regards

@244916896
Copy link
Author

You can test it ,write a main program to connect redis global variables to store connection information. Open the dynamic library in dlopen mode, and use the global variable in the dynamic library to call the redis setting or value viewing function. At this time, the global variable is not connected, and you need to connect again to call the setting viewing function.

@sewenew
Copy link
Owner

sewenew commented Sep 7, 2021

Sorry, but I do not quite understand your scenario. If you can share a minimum compilable code, I can do more help.

Regards

@sewenew
Copy link
Owner

sewenew commented Sep 10, 2021

Also please check if you installed multiple versions of hiredis. Check this for reference.

Regards

@sewenew
Copy link
Owner

sewenew commented Sep 20, 2021

Since there’s no update. I’ll close this issue.

@sewenew sewenew closed this as completed Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants