Fix a bug that will cause r2 client lose connection forever after the server being bounced

RB=204500
R=dhoa,cpettitt,sihde,si-dev
A=sihde,cpettitt,dhoa