add persistent connection for each http request thread