Closed stefan-guggisberg closed 4 years ago
Note: I can't reproduce the issue in a Mocha test. Probably because Mocha runs the tests in forked child processes.
@grantila This is a serious issue for us. Could you please have a look or at least direct me to the code that need's to be fixed?
:tada: This issue has been resolved in version 2.5.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Requesting a redirected resource over HTTP2 causes sudden process exit with code 0.
Code to reproduce:
Running above code produces the following console output:
The process exits during the
fetch
call with code 0 (success) because somehow no more async operations were pending.This is a regression of changes introduced in version
2.4.0
. All versions since2.4.0
are affected.2.3.0
OTOH does work as expected.Workarounds:
require('fetch-h2').context({ httpsProtocols: ['http1'] })
setTimeout(...)
)