bsm / redeo

High-performance framework for building redis-protocol compatible TCP servers/services
Apache License 2.0
438 stars 39 forks source link

Fix slice out of bound exception in rare cases. #23

Closed zhangjyr closed 5 years ago

zhangjyr commented 5 years ago

In rare cases, '\n' may not be buffered while '\r' is. This will cause consecutive "slice out of bound" failures of compact() calls due to b.r > b.w by 1.

dim commented 5 years ago

Thanks, much appreciated!