Commit 12fe68d
Fix byte tracking to count received bytes not consumed bytes
The issue was that totalEncodedBytesProcessed was tracking consumed bytes
(what the decoder processed), but it should track received bytes (what came
from the network). This ensures retry requests fetch new data after what
was already received, while the pending buffer holds unconsumed bytes.
On retry: request starts after all received bytes, decoder continues from
its internal state with pending bytes, new bytes appended after pending.
Co-authored-by: gunjansingh-msft <[email protected]>1 parent 9d78ce1 commit 12fe68d
File tree
1 file changed
+3
-10
lines changed- sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/policy
1 file changed
+3
-10
lines changedLines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 109 | | |
117 | 110 | | |
118 | 111 | | |
| |||
0 commit comments