You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
http2 throws ERR_HTTP2_INVALID_STREAM with minor amount of concurrency #22135
Platform: Linux 86f664ae731c 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux (ubuntu:18.04 Docker image)
Subsystem: http2
After a small handful of concurrent requests, http2 fails with the following error:
internal/http2/core.js:1791
throw new ERR_HTTP2_INVALID_STREAM();
^
Error [ERR_HTTP2_INVALID_STREAM]: The stream has been destroyed
at ServerHttp2Stream.sendTrailers (internal/http2/core.js:1791:13)
at ServerHttp2Stream.onStreamTrailersReady (internal/http2/compat.js:377:8)
at ServerHttp2Stream.emit (events.js:182:13)
at Http2Stream.onStreamTrailers [as ontrailers] (internal/http2/core.js:318:15)
at ServerHttp2Stream.submitRstStream (internal/http2/core.js:328:19)
at ServerHttp2Stream.finishCloseStream (internal/http2/core.js:1533:3)
at closeStream (internal/http2/core.js:1517:7)
at ServerHttp2Stream.close (internal/http2/core.js:1846:5)
at state.streams.forEach (internal/http2/core.js:2691:46)
at Map.forEach (<anonymous>)
When the error occurs, you can manually kill the command with ctrl+C and wc -l count to view how many requests were initiated before the failure. For me it's been anywhere between 10 and 70.
This doesn't seem to be reproducible when using either https or spdy instead of http2.
Activity
mscdex commentedon Aug 5, 2018
Can you reproduce the issue without
koa?buu700 commentedon Aug 5, 2018
Ah right, good point. After giving it a few minutes, the koa-free alternative below doesn't seem affected. I'll close this and open a ticket there.
Edit: compatibility API version: