Commit f261afc
committed
Set settle modes in link error frames
Follow-up to #14389
Without these changes, the attach frame doesn't set
any settlement mode. This leads to settlement negotiation
errors hiding the actual error.
For example,
omq amqp -y 0 -t /queues/no-such-queue
omq amqp -x 0 -T /queues/no-such-queue
Returned `amqp: sender settlement mode "unsettled" requested, received "mixed" from server"`,
when the actual error in the next (detach) frame was `amqp:not-found`.
However, the attach frame triggers a client-side error before the
detach frame is processed.1 parent 6e7cb4d commit f261afc
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | | - | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
1140 | 1142 | | |
1141 | 1143 | | |
1142 | 1144 | | |
| |||
1152 | 1154 | | |
1153 | 1155 | | |
1154 | 1156 | | |
1155 | | - | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1156 | 1160 | | |
1157 | 1161 | | |
1158 | 1162 | | |
1159 | 1163 | | |
1160 | 1164 | | |
1161 | 1165 | | |
1162 | 1166 | | |
1163 | | - | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1164 | 1170 | | |
1165 | 1171 | | |
1166 | 1172 | | |
| |||
0 commit comments