Skip to content

Commit 087ee1c

Browse files
authored
Merge pull request #126 from Pradhyumna02/Fix-IE-Timeout
Changing the timeout to be after opening the connection
2 parents cd0ff71 + c4d7398 commit 087ee1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "speed-testjs",
3-
"version": "1.0.32-beta.0",
3+
"version": "1.0.32-beta.0.1",
44
"description": "measure internet bandwidth",
55
"main": "index.js",
66
"author": "Maulan Byron",

public/lib/xmlhttprequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
if (this._request === null ||
6262
typeof this._request === 'undefined') {
6363
this._request = new XMLHttpRequest();
64-
this._request.timeout = this.timeout;
6564
// Handle lifecycle events on wrapped request
6665
this._request.onloadstart = this._handleLoadstart.bind(this);
6766
this._request.onload = this._handleLoad.bind(this);
@@ -88,6 +87,7 @@
8887
this.id = id;
8988
this.transferSize = size;
9089
this._request.open(this.method, this.url, true);
90+
this._request.timeout = this.timeout;
9191
this.requestTimeout = setTimeout(this._internalAbort.bind(this), this.timeout);
9292
if(this.method==='POST') {
9393
this.transferSize = payload.size;

0 commit comments

Comments
 (0)