Commit 02244c2
authored
Improve reconnect and resubscribe stability (#108)
Several problems were found when testing library under unstable conditions – with frequent reconnections. Allows to avoid already subscribed subscription error, and bad request error (sending subscribe frame before connect frame). Also protects from running several simultaneous timers for reconnect/resubscribe.1 parent 42be075 commit 02244c2
4 files changed
+40
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
604 | 611 | | |
605 | 612 | | |
606 | 613 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
572 | 574 | | |
573 | 575 | | |
574 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
575 | 586 | | |
576 | 587 | | |
577 | 588 | | |
| |||
698 | 709 | | |
699 | 710 | | |
700 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
701 | 721 | | |
| 722 | + | |
702 | 723 | | |
703 | 724 | | |
704 | 725 | | |
705 | 726 | | |
706 | 727 | | |
707 | 728 | | |
708 | 729 | | |
| 730 | + | |
709 | 731 | | |
710 | 732 | | |
711 | 733 | | |
| 734 | + | |
712 | 735 | | |
713 | 736 | | |
714 | 737 | | |
715 | 738 | | |
716 | 739 | | |
717 | 740 | | |
| 741 | + | |
718 | 742 | | |
719 | 743 | | |
720 | 744 | | |
| |||
725 | 749 | | |
726 | 750 | | |
727 | 751 | | |
| 752 | + | |
728 | 753 | | |
729 | 754 | | |
730 | 755 | | |
| |||
738 | 763 | | |
739 | 764 | | |
740 | 765 | | |
| 766 | + | |
741 | 767 | | |
742 | 768 | | |
743 | 769 | | |
| 770 | + | |
744 | 771 | | |
745 | 772 | | |
746 | 773 | | |
| 774 | + | |
747 | 775 | | |
748 | 776 | | |
749 | 777 | | |
| |||
0 commit comments