Commit b7e38ae
lse: fix missing timeout handling
Details
This fixes the "3s delays".
What happens goes more or less as follows, for an hypothetical Android
application "AAP"
Android suspends
AAP -> VSIP connection times out, on VSIP
due to missing timeout error handling, nothing happens
Android resumes
AAP reconnects to VSIP, re-establishes AAP -> VSIP, sends
ASSIGN_CLIENT
VSIP still has a record of the "old" connection, so it ignores the
new one, and sends ASSIGN_CLIENT_ACK to the.. old connection
(this causes a send_cbk error, visible in the logs)
AAP times out after 3s, closes connection, goes to step 5
VSIP sees closed connection, cleans connection for client, which
heals the situation for the next AAP attempt
Besides the missing timeout handling, improve logging, and improve a bit
of the client connection registration handling1 parent c0173a7 commit b7e38ae
File tree
2 files changed
+63
-32
lines changed- implementation/endpoints/src
2 files changed
+63
-32
lines changedLines changed: 31 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
| 228 | + | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
| |||
718 | 721 | | |
719 | 722 | | |
720 | 723 | | |
721 | | - | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
722 | 736 | | |
723 | | - | |
| 737 | + | |
724 | 738 | | |
725 | 739 | | |
726 | 740 | | |
| |||
798 | 812 | | |
799 | 813 | | |
800 | 814 | | |
801 | | - | |
802 | | - | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
803 | 821 | | |
804 | 822 | | |
805 | 823 | | |
806 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
807 | 830 | | |
808 | | - | |
| 831 | + | |
809 | 832 | | |
810 | 833 | | |
811 | 834 | | |
| |||
Lines changed: 32 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | | - | |
755 | | - | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
756 | 760 | | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
768 | 770 | | |
769 | 771 | | |
770 | 772 | | |
| |||
776 | 778 | | |
777 | 779 | | |
778 | 780 | | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | 781 | | |
| 782 | + | |
| 783 | + | |
787 | 784 | | |
788 | 785 | | |
789 | 786 | | |
| |||
835 | 832 | | |
836 | 833 | | |
837 | 834 | | |
838 | | - | |
839 | | - | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
840 | 842 | | |
841 | 843 | | |
842 | 844 | | |
843 | | - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
844 | 852 | | |
845 | 853 | | |
846 | 854 | | |
| |||
0 commit comments