🚧 wip: chasing the 30-second download timeout issue

main
_ 2022-04-11 17:25:18 -05:00
parent 8c731c4cef
commit b69770870c
1 changed files with 2 additions and 1 deletions

View File

@ -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)?;