Skip to content

Subscriber unsubscribes after subscribing on reconnect #1110

@shellicar

Description

@shellicar

Issue

Subscriber very occasionally unsubscribes after subscribing after the subscriber connection is restored from a hard disconnect (port being closed).
This seems to be related to issue: #273
But I can still reproduce this.

Version

Reproduced with the following versions.
1.2.6
2.0.519
2.0.588

Behaviour

using redis-monitor on the server, the following is observed.

1554338345.603361 [0 127.0.0.1:10441] "SUBSCRIBE" "__Booksleeve_MasterChanged"
1554338345.620982 [0 127.0.0.1:10441] "SUBSCRIBE" "Channel1"
1554338345.621008 [0 127.0.0.1:10441] "SUBSCRIBE" "Channel2"
1554338345.629399 [0 127.0.0.1:10441] "UNSUBSCRIBE" "Channel1"
1554338345.629421 [0 127.0.0.1:10441] "UNSUBSCRIBE" "Channel2"

Expected/Normal Behaviour

1554338954.604720 [0 127.0.0.1:11370] "SUBSCRIBE" "__Booksleeve_MasterChanged"
1554338954.609184 [0 127.0.0.1:11370] "UNSUBSCRIBE" "Channel1"
1554338954.609228 [0 127.0.0.1:11370] "UNSUBSCRIBE" "Channel2"
1554338954.609439 [0 127.0.0.1:11370] "SUBSCRIBE" "Channel1"
1554338954.609456 [0 127.0.0.1:11370] "SUBSCRIBE" "Channel2"

OR

1554338956.418663 [0 127.0.0.1:11372] "SUBSCRIBE" "__Booksleeve_MasterChanged"
1554338956.419116 [0 127.0.0.1:11372] "SUBSCRIBE" "Channel1"
1554338956.419133 [0 127.0.0.1:11372] "SUBSCRIBE" "Channel2"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions