Added a timeout option for http reads.