mnetship / ratsio

NATS & NATS Streaming Server client library for Rust
MIT License
50 stars 22 forks source link

Impossible to publish or receive messages after Stan client reconnection #16

Open ufoscout opened 4 years ago

ufoscout commented 4 years ago

Hi,

I am using version 0.3.0-alpha.1; I have a publisher and a subscriber using a durable subscription that work as expected; however, when the Stan server goes down and then up, both the publisher and a subscriber reconnect but do not work any more.

Specifically, if subscribe_on_reconnect is set to true; when the publisher and a subscriber reconnect, then:

Instead, if subscribe_on_reconnect is set to false; when the publisher and a subscriber reconnect, then:

Restarting the publisher or subscriber process fixes all the issues.

AxelGreen commented 4 years ago

Any updates on this one? I saw a comment from @glueball (https://github.com/mnetship/ratsio/issues/10#issuecomment-590986169) that issue was resolved in 0.3.0-alpha.1. But it's not working for me in 0.3.0-alpha.6.