Commit dbd47b8
committed
Don't use fallback hosts for Realtime token errors
This is a partial fix for #444 (nature of error not considered when
deciding whether to use a fallback host for realtime connections).
Here, I implement just enough of RTN17f to make sure that we don't use a
fallback host in response to a token error. This fixes an intermittent
failure in the test case on connection_failures_spec.rb:1361, which
tests that we correctly handle token errors when resuming a connection
per RTN15c5. This test was intermittently failing because it would
incorrectly try and use a fallback host after receiving the token error,
causing the resume attempt to sometimes fail with "Unable to resume
connection from another site".
I don't have loads of time on to spend on this issue right now, which is
why I'm applying the smallest possible fix. We need to return to #444
and properly consider how to identify the types of errors mentioned in
RTN17f.1 parent 9db3a61 commit dbd47b8
1 file changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
694 | 698 | | |
695 | 699 | | |
696 | 700 | | |
697 | | - | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
698 | 706 | | |
699 | 707 | | |
700 | 708 | | |
701 | 709 | | |
702 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
703 | 731 | | |
704 | 732 | | |
705 | 733 | | |
| |||
0 commit comments