Commit 2431717
committed
Handle PROTOCOL_CANCELLED (state 3) in _dispatch_result.
Prior to this patch the state machine did not handle results arriving
after cancellation. This add explicit support for that scenario by
keeping track of the state prior the cancellation
(cancelled_from_state), and using cancelled_from_state when consuming the
results.
The alternative option is just silently dropping the results (similar to
PROTOCOL_TERMINATING).1 parent 9e42642 commit 2431717
3 files changed
+23
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
835 | 836 | | |
836 | 837 | | |
837 | 838 | | |
| 839 | + | |
838 | 840 | | |
839 | 841 | | |
840 | 842 | | |
841 | 843 | | |
842 | 844 | | |
| 845 | + | |
843 | 846 | | |
844 | 847 | | |
845 | 848 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
854 | 861 | | |
855 | | - | |
| 862 | + | |
856 | 863 | | |
857 | 864 | | |
858 | | - | |
| 865 | + | |
859 | 866 | | |
860 | 867 | | |
861 | | - | |
| 868 | + | |
862 | 869 | | |
863 | 870 | | |
864 | | - | |
| 871 | + | |
865 | 872 | | |
866 | 873 | | |
867 | | - | |
| 874 | + | |
868 | 875 | | |
869 | 876 | | |
870 | | - | |
| 877 | + | |
871 | 878 | | |
872 | 879 | | |
873 | | - | |
| 880 | + | |
874 | 881 | | |
875 | 882 | | |
876 | | - | |
| 883 | + | |
877 | 884 | | |
878 | 885 | | |
879 | | - | |
880 | | - | |
| 886 | + | |
| 887 | + | |
881 | 888 | | |
882 | 889 | | |
883 | | - | |
| 890 | + | |
884 | 891 | | |
885 | 892 | | |
886 | | - | |
| 893 | + | |
887 | 894 | | |
888 | 895 | | |
889 | 896 | | |
| |||
0 commit comments