doing keep-alive right: retry if the persistent connection broken