Skip to content

Commit

Permalink
revert deletion of create_handle()
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Nov 3, 2024
1 parent 9e22991 commit e5c7d65
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions R/internal_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@
}
}


#' Create curl Handles
#' @return a \CRANpkg{curl} handle for use in downloading files
#' @noRd
#' @keywords Internal
create_handle <- function() {
h <- curl::new_handle()
curl::handle_setopt(
handle = h,
TCP_KEEPALIVE = 200000,
CONNECTTIMEOUT = 90,
http_version = 2
)
}

#' Use httr2 to Fetch a File With Retries
#'
#' Retries to download the requested resource five times before stopping. Then
Expand Down

0 comments on commit e5c7d65

Please sign in to comment.