Removed retry strategy from get connection and changed the timeout to infinity

Also, added timeout parameter to the rest of the API.