fix(connect): disable context takeover in websocket transport (#33811)

This commit is contained in:
jinohkang-theori 2024-12-10 11:07:00 +09:00 committed by GitHub
parent d029b03d9f
commit 27060a0f65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import { httpHappyEyeballsAgent, httpsHappyEyeballsAgent } from '../utils/happy-
import type { HeadersArray } from './types';
export const perMessageDeflate = {
clientNoContextTakeover: true,
zlibDeflateOptions: {
level: 3,
},

View File

@ -25,6 +25,7 @@ let lastConnectionId = 0;
const kConnectionSymbol = Symbol('kConnection');
export const perMessageDeflate = {
serverNoContextTakeover: true,
zlibDeflateOptions: {
level: 3,
},