Fix error: should use different httpconnection for each thread