Fix proxy timeout issues on high-latency connections.

Credit to: Milan Andric <milan@medicmobile.org>