-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
block in read when call redisCommand #443
Comments
Please provide the error as text, images are not searchable, copyable or accessible.
|
I call redisCommand function , to run 'sadd www.qidian.com_3 read.qidian.com/BookReader/cF08D_FqdtR7DVpbqm07HA2.aspx' command, and I expect get redisReply * value,but now ,my program blocked |
I forgot to say, I call redisCommand () in multi-thread ,did it have influence on this problem? |
If you share a single connection context across multiple threads, yes. hiredis is not thread-safe. Bad things will happen if you use it simultaneously from multiple threads. |
@badboy Is connection context thread safe in this situation? |
@popstk |
@peppo65 |
use this func: |
@popstk |
it's the network problem? the redis server address is localhost.
The text was updated successfully, but these errors were encountered: