buaazp: 1. Use keepalive to backend for every thread. 2. Added retry function.