You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -107,6 +109,7 @@ RequestBase.prototype.serialize = function serialize(fn){
107
109
*
108
110
* - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.
109
111
* - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.
112
+
* - upload is the time since last bit of data was sent or received. This timeout works only if deadline timeout is off
110
113
*
111
114
* Value of 0 or false means no timeout.
112
115
*
@@ -119,6 +122,7 @@ RequestBase.prototype.timeout = function timeout(options){
119
122
if(!options||'object'!==typeofoptions){
120
123
this._timeout=options;
121
124
this._responseTimeout=0;
125
+
this._uploadTimeout=0;
122
126
returnthis;
123
127
}
124
128
@@ -130,6 +134,9 @@ RequestBase.prototype.timeout = function timeout(options){
0 commit comments