Set read and write timeouts on HTTPS requests