🚧 wip: chasing the 30-second download timeout issue
parent
8c731c4cef
commit
b69770870c
|
@ -140,7 +140,7 @@ async fn handle_one_req (
|
|||
Ok (r) => {
|
||||
let status = r.status ();
|
||||
let text = r.text ().await.map_err (ServerError::Step7AfterResponse)?;
|
||||
trace! ("http_response {} {:?} {:?}", req_id, status, text);
|
||||
debug! ("http_response {} {:?} {:?}", req_id, status, text);
|
||||
},
|
||||
Err (e) => {
|
||||
if e.is_request () {
|
||||
|
@ -385,6 +385,7 @@ impl State {
|
|||
|
||||
let client = Client::builder ()
|
||||
.default_headers (headers)
|
||||
.timeout (Duration::from_secs (7 * 86400))
|
||||
.connect_timeout (Duration::from_secs (30))
|
||||
.build ().map_err (ServerError::CantBuildHttpClient)?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue