Better synchronization in HttpTunnel