Fix connect and read timeouts.