Skip to content

Internal("Subscription failed, try again later...") on pubsub #50

@nazar-pc

Description

@nazar-pc

I have an app where pubsub connection is created from actix_rt runtime (based on Tokio runtime), but occasionally I get error just like in #47 when trying to subscribe to the topic.

Fails the same in these configurations:

  • Linux host with Redis in Docker
  • macOS host with Redis in Docker (within VM of course)
  • Linux host with Redis on AWS (Elasticache)

Turns out that library drops connection when stream from subscription is dropped, while the expectation is that subscription will be removed and connection will remain active.
It also happens to not always being able to reconnect before subscribing to another subject, which seems to be exactly the kind of race condition Rust is supposed to avoid.

Also no reconnection happens, despite Redis didn't go away and connection from another library (https://github.com/mitsuhiko/redis-rs) is active all the time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions