Skip to content

Commit 2d1c57d

Browse files
committed
Exponential backoff for chunking test - a failure will take about 4 seconds. A success is detected earlier and the request is aborted.
1 parent 1085e05 commit 2d1c57d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/chunking-test.coffee

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ exports.app =
1414
utils.timeout_chain([
1515
# IE requires 2KB prelude
1616
[0, => write(Array(2048).join(' ')) + 'h'],
17-
[1, => write('h')],
18-
[10, => write('h')],
19-
[50, => write('h')],
20-
[100, => write('h')],
21-
[239, => write('h'); res.end()],
17+
[5, => write('h')],
18+
[25, => write('h')],
19+
[125, => write('h')],
20+
[625, => write('h')],
21+
[3125, => write('h'); res.end()],
2222
])
2323
return true

0 commit comments

Comments
 (0)