Skip to content

Is there a way to tell hiredis to disconnect in the async onConnect callback? #835

Closed
@echoma

Description

@echoma

https://github.com/redis/hiredis/blob/master/async.c#L620
If I call redisAsyncDisconnect() in the onConnect callback, the redisContext pointer "c" will point to a freed memory, this might make a crash.

may be, a REDIS_IN_CALLBACK like flag which protecting the context object will help?

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