set connect and read timeouts