Commit 9d7ebf3
committed
Enforce correct transfer settled flag
For messages published to RabbitMQ, RabbitMQ honors the transfer `settled`
field, no matter what value the sender settle mode was set to in the attach
frame.
Therefore, prior to this commit, a client could send a transfer with
`settled=true` even though sender settle mode was set to `unsettled` in the
attach frame.
This commit enforces that the publisher sets only transfer `settled` fields
that are valid with the spec.
If sender settle mode is:
* `unsettled`, the transfer `settled` flag must be `false`.
* `settled`, the transfer `settled` flag must be `true`.
* `mixed`, the transfer `settled` flag can be `true` or `false`.1 parent 1245119 commit 9d7ebf3
File tree
4 files changed
+87
-9
lines changed- deps
- amqp10_client/src
- amqp10_common/include
- rabbit
- src
- test
4 files changed
+87
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 72 | | |
76 | 73 | | |
77 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
1232 | 1233 | | |
1233 | 1234 | | |
1234 | 1235 | | |
1235 | | - | |
| 1236 | + | |
1236 | 1237 | | |
1237 | 1238 | | |
1238 | 1239 | | |
| |||
1243 | 1244 | | |
1244 | 1245 | | |
1245 | 1246 | | |
| 1247 | + | |
1246 | 1248 | | |
1247 | 1249 | | |
| 1250 | + | |
1248 | 1251 | | |
1249 | 1252 | | |
1250 | 1253 | | |
| |||
1256 | 1259 | | |
1257 | 1260 | | |
1258 | 1261 | | |
1259 | | - | |
| 1262 | + | |
1260 | 1263 | | |
1261 | 1264 | | |
1262 | 1265 | | |
| |||
2304 | 2307 | | |
2305 | 2308 | | |
2306 | 2309 | | |
2307 | | - | |
| 2310 | + | |
| 2311 | + | |
2308 | 2312 | | |
2309 | 2313 | | |
2310 | 2314 | | |
| |||
2335 | 2339 | | |
2336 | 2340 | | |
2337 | 2341 | | |
| 2342 | + | |
2338 | 2343 | | |
2339 | 2344 | | |
2340 | 2345 | | |
| |||
2914 | 2919 | | |
2915 | 2920 | | |
2916 | 2921 | | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
2917 | 2931 | | |
2918 | 2932 | | |
2919 | 2933 | | |
| |||
3059 | 3073 | | |
3060 | 3074 | | |
3061 | 3075 | | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
3062 | 3092 | | |
3063 | 3093 | | |
3064 | 3094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
757 | 758 | | |
758 | 759 | | |
759 | 760 | | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
760 | 806 | | |
761 | 807 | | |
762 | 808 | | |
| |||
4761 | 4807 | | |
4762 | 4808 | | |
4763 | 4809 | | |
4764 | | - | |
| 4810 | + | |
4765 | 4811 | | |
4766 | 4812 | | |
4767 | 4813 | | |
| |||
4852 | 4898 | | |
4853 | 4899 | | |
4854 | 4900 | | |
4855 | | - | |
| 4901 | + | |
4856 | 4902 | | |
4857 | 4903 | | |
4858 | 4904 | | |
| |||
5141 | 5187 | | |
5142 | 5188 | | |
5143 | 5189 | | |
5144 | | - | |
| 5190 | + | |
5145 | 5191 | | |
5146 | 5192 | | |
5147 | 5193 | | |
| |||
0 commit comments