Skip to content

hiredis client hang at redisBufferRead, with timeout option and keepalive option set #593

Closed
@Gwan-He

Description

@Gwan-He

Here is how the client program use hiredis to connect redis servers:
image
The client program callls the redisSetTimeout and redisEnableKeepAlive to set timeout option and activate tcp keepalive.

Here is the stack where the program hang:
image

My redis servers run in cluster mode by using twem proxy, when this problem occurred, there is one redis server shutdown due to hardware problem, and the MGet command right just sent to this broken redis server.
Unlike the other hang problems reported, my client program has set timeout and keepalive option when connected to redis servers, and although the client program runs in multi-thread task, but would use one exclusive hiredis client context for each thread. So would that be some new problems?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions