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 ffe59e6 commit 31bcaedCopy full SHA for 31bcaed
packages/grpc-js/src/server.ts
@@ -284,11 +284,6 @@ export class Server {
284
this.http2Server.on(
285
'stream',
286
(stream: http2.ServerHttp2Stream, headers: http2.IncomingHttpHeaders) => {
287
- if (!this.started) {
288
- stream.end();
289
- return;
290
- }
291
-
292
const contentType = headers[http2.constants.HTTP2_HEADER_CONTENT_TYPE];
293
294
if (
@@ -351,6 +346,13 @@ export class Server {
351
346
}
352
347
353
348
);
349
+
350
+ this.http2Server.on('session', session => {
+ if (!this.started) {
+ session.destroy();
+ return;
354
+ }
355
+ });
356
357
358
0 commit comments