vipshop / hiredis-vip

Support redis cluster. Maintained and used at vipshop.
BSD 3-Clause "New" or "Revised" License
322 stars 173 forks source link

redisContextConnectTcp is blocked in the poll #37

Open thakurajayL opened 7 years ago

thakurajayL commented 7 years ago

HI, I am trying to redisClusterAsyncConnect to connect to cluster. But looks like cluster context flags are ignored when we create redisContext and which leads to blocking connect. If route to destination exist then connect gets blocked forever.

cluster_update_route_by_addr { <> if(cc->timeout){ c = redisConnectWithTimeout(ip, port, *cc->timeout); }else{ c = redisConnect(ip, port); <<< this is always blockig even if cc has blocking flag reset. } <> }

deep011 commented 7 years ago

Please show your code about hiredis-vip.