increased web timeout

This commit is contained in:
Devaev Maxim 2019-06-06 04:04:42 +03:00
parent 288fb05ea5
commit 0f4b990eae
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ function Msd() {
__upload_http = new XMLHttpRequest(); __upload_http = new XMLHttpRequest();
__upload_http.open("POST", "/api/msd/write", true); __upload_http.open("POST", "/api/msd/write", true);
__upload_http.upload.timeout = 5000; __upload_http.upload.timeout = 15000;
__upload_http.onreadystatechange = __uploadStateChange; __upload_http.onreadystatechange = __uploadStateChange;
__upload_http.upload.onprogress = __uploadProgress; __upload_http.upload.onprogress = __uploadProgress;
__upload_http.send(form_data); __upload_http.send(form_data);

View File

@ -36,7 +36,7 @@ var tools = new function() {
http.setRequestHeader("Content-Type", content_type); http.setRequestHeader("Content-Type", content_type);
} }
http.onreadystatechange = callback; http.onreadystatechange = callback;
http.timeout = 5000; http.timeout = 15000;
http.send(body); http.send(body);
return http; return http;
}; };