refactor the retry logic. Take big method into parts
refactor the retry logic.
Take big method into parts

savaki/tchannel,vanloswang/tchannel,hustxiaoc/tchannel,vanloswang/tchannel,sasa233/tchannel,bunnyblue/tchannel,i/tchannel,sasa233/tchannel,i/tchannel,bunnyblue/tchannel,chenwenbin928/tchannel,hustxiaoc/tchannel,savaki/tchannel,Zirpon/tchannel,benfleis/tchannel,savaki/tchannel,bunnyblue/tchannel,chenwenbin928/tchannel,Zirpon/tchannel,hustxiaoc/tchannel,RyanTech/tchannel,vanloswang/tchannel,benfleis/tchannel,chenwenbin928/tchannel,RyanTech/tchannel,RyanTech/tchannel,Zirpon/tchannel,sasa233/tchannel,i/tchannel,benfleis/tchannel