Commit fab7b39
committed
Clear Utf8ByteBufCharsetDecoder#splitCharBuffer once char is complete, close AsyncHttpClient#1357
Motivation:
When multiple non US-ASCII chars are split over several chunks,
Utf8ByteBufCharsetDecoder crashes with BufferOverflowException.
This happens because we don't clear the splitCharBuffer in-between and
only do so once decoding is done.
Modifications:
Clear Utf8ByteBufCharsetDecoder#splitCharBuffer once char is complete
Result:
No more BufferOverflowException1 parent bb7652a commit fab7b39
File tree
2 files changed
+3
-2
lines changed- netty-utils/src
- main/java/org/asynchttpclient/netty/util
- test/java/org/asynchttpclient/netty/util
2 files changed
+3
-2
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | | - | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments