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

Commit

Permalink
Set timeout at the lowest to the default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Braydon Fuller committed May 25, 2017
1 parent c397f1d commit 4535214
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/storj.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,13 @@ struct storj_env *storj_init_env(storj_bridge_options_t *options,
}
ho->low_speed_limit = http_options->low_speed_limit;
ho->low_speed_time = http_options->low_speed_time;
ho->timeout = http_options->timeout;
if (http_options->timeout == 0 ||
http_options->timeout >= STORJ_HTTP_TIMEOUT) {
ho->timeout = http_options->timeout;
} else {
ho->timeout = STORJ_HTTP_TIMEOUT;
}

env->http_options = ho;

// setup the log options
Expand Down

0 comments on commit 4535214

Please sign in to comment.