Open szmarczak opened 3 years ago
The session's handle hasn't been setup before session connects.
Why not setLocalWindowSize
in the connect callback listener ?
const session = http2.connect('https://example.com', () => {
session.setLocalWindowSize(1024 * 1024 * 16);
});
Still an issue as of v16.4.2
Please Check:
`const clientHttp2Session = http2.connect(authority, {}, (session, socket) => { session.setLocalWindowSize(2 5); console.log(session.state); // effectiveLocalWindowSize: 2 5 });
const stream = clientHttp2Session.request(); `
Linux solus 5.11.12-177.current #1 SMP PREEMPT Thu Apr 8 15:46:08 UTC 2021 x86_64 GNU/Linux
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
No error.
What do you see instead?
Related with #38426