Closed zhanghai closed 2 years ago
CharsetEncoder isn't thread safe so the original code often crashes when there are multiple responses being encoded concurrently. We can use a ThreadLocal for the CharsetEncoder to fix this.
Patch applied in 1.1.X and 1.2.X branches. Many thanks !
Note that we now have 2 branches for the project:
Can you close the PR?
Thanks !
Well, I can close it myself :-)
CharsetEncoder isn't thread safe so the original code often crashes when there are multiple responses being encoded concurrently. We can use a ThreadLocal for the CharsetEncoder to fix this.