On 02/27/2017 07:10 AM, 张浩杰 wrote:
> Hello everyone.
> I'm trying to use libuv to connect redis with hiredis,but there are some
> differences between macos 10.11.3 and ubuntu 12.04 LTS,if my
> redis-server is down,when I try to connect redis,the 'ConnectCallback'
> will work OK in macos,it returns 'connectCallback Error: Connection
> refused', however in ubuntu it returns nothing.I see the
> hiredis-libuv-adapters,here is a function 'static void
> redisLibuvPoll(uv_poll_t* handle, int status, int events)',the 'status'
> is not 0 in ubuntu, and I can't find why.
> ask for help.thanks.
> my libuv version is v1.11.0: 2017.02.02, Version 1.11.0 (Stable)
> hiredis version is v0.13.3(github:https://github.com/redis/hiredis)
> 

I haven't used hiredis myself, but given that they use uv_poll_t, (the
low level API for polling file descriptors) you should ask the hiredis
maintainers. When using that API libuv doesn't issue the connect(2)
syscall, hiredis does.


Cheers,

-- 
Saúl Ibarra Corretgé
bettercallsaghul.com


-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to