Making timeout and connecttimeout configurable