We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7693705 commit 4e2f999Copy full SHA for 4e2f999
test/parallel/test-dgram-send-callback-recursive.js
@@ -8,9 +8,10 @@ const chunk = 'abc';
8
var recursiveCount = 0;
9
var received = 0;
10
const limit = 10;
11
+const recursiveLimit = limit + 1;
12
13
function onsend() {
- if (recursiveCount > limit) {
14
+ if (recursiveCount > recursiveLimit) {
15
throw new Error('infinite loop detected');
16
}
17
if (received < limit) {
0 commit comments