We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1150c12 commit 017a470Copy full SHA for 017a470
src/ndt7.js
@@ -149,7 +149,10 @@
149
});
150
151
// If the worker takes 10 seconds, kill it and return an error code.
152
- setTimeout(() => worker.resolve(2), 10000);
+ // Most clients take longer than 10 seconds to complete the upload and
153
+ // finish sending the buffer's content, sometimes hitting the socket's
154
+ // timeout of 15 seconds. This makes sure uploads terminate on time.
155
+ setTimeout(() => worker.resolve(0), 10000);
156
157
// This is how the worker communicates back to the main thread of
158
// execution. The MsgTpe of `ev` determines which callback the message
0 commit comments