Skip to content

Commit e5e9b85

Browse files
committed
Increase curl timeout
1 parent a48f6ee commit e5e9b85

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

singlecell/resources/chunks/StudyMetadata.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ if (!file.exists(netRc)) {
44
stop(paste0('Unable to find file: ', netRc))
55
}
66

7-
invisible(Rlabkey::labkey.setCurlOptions(NETRC_FILE = netRc, timeout = 60, timeout_ms = 60000))
7+
invisible(Rlabkey::labkey.setCurlOptions(NETRC_FILE = netRc, timeout = 60, timeout_ms = 60000, connecttimeout = 20, connecttimeout_ms = 20000))
88
Rdiscvr::SetLabKeyDefaults(baseUrl = serverBaseUrl, defaultFolder = defaultLabKeyFolder)
99

10+
curlOpt <- curl::curl_options('timeout')
11+
message('Curl options:')
12+
for (x in names(curlOpt)) {
13+
message(paste0(x, ': ', curlOpt[x]))
14+
}
15+
rm(curlOpt)
16+
1017
for (datasetId in names(seuratObjects)) {
1118
printName(datasetId)
1219
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])

0 commit comments

Comments
 (0)