I use hiredis redisSetTimeout function set timeout 10ms, when i start 100 thread it is accurate 10ms, but when i start 1000 thread, some call in redisVCommand cost 300+ms, and not timeout, can anyone explain this in detail?
redisSetTimeout function call the following system function
setsockopt(c->fd,SOL_SOCKET,SO_RCVTIMEO,&tv,sizeof(tv))
setsockopt(c->fd,SOL_SOCKET,SO_SNDTIMEO,&tv,sizeof(tv))