Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
facilitator: use longer timeouts for GCS uploads
Browse files Browse the repository at this point in the history
See #391 for context
  • Loading branch information
tgeoghegan committed Feb 12, 2021
1 parent 6f94553 commit 434a7b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions facilitator/src/transport/gcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl StreamingTransferWriter {
.query("name", &encoded_object)
// By default, ureq will wait forever to connect or read
.timeout_connect(10_000) // ten seconds
.timeout_read(10_000) // ten seconds
.timeout_read(120_000) // two minutes
.send_bytes(&[]);
if http_response.error() {
return Err(anyhow!("uploading to gs://{}: {:?}", bucket, http_response));
Expand Down Expand Up @@ -235,7 +235,7 @@ impl StreamingTransferWriter {
.set("Content-Range", &content_range)
// By default, ureq will wait forever to connect or read
.timeout_connect(10_000) // ten seconds
.timeout_read(10_000) // ten seconds
.timeout_read(120_000) // two minutes
.send_bytes(body);

// On success we expect HTTP 308 Resume Incomplete and a Range: header,
Expand Down Expand Up @@ -333,7 +333,7 @@ impl TransportWriter for StreamingTransferWriter {
.set("Content-Length", "0")
// By default, ureq will wait forever to connect or read
.timeout_connect(10_000) // ten seconds
.timeout_read(10_000) // ten seconds
.timeout_read(120_000) // two minutes
.call();
match http_response.status() {
499 => Ok(()),
Expand Down

0 comments on commit 434a7b7

Please sign in to comment.