Update HTTP connection handling for long running operations

* Update HTTP connection handling for long running operations based on https://forum.dlang.org/post/k2vbk5$re7$1@digitalmars.com & https://github.com/dlang/phobos/pull/797
This commit is contained in:
abraunegg 2018-08-01 06:02:28 +10:00
parent a58ceebaaf
commit 49968e5639

View file

@ -55,6 +55,7 @@ final class OneDriveApi
this.cfg = cfg;
http = HTTP();
http.dnsTimeout = (dur!"seconds"(5));
http.dataTimeout = (dur!"seconds"(3600));
if (debugHttp) {
http.verbose = true;
.debugResponse = true;