add the ability to set read and connect timeouts.