Skip to content

Update HTTP/2 server settings after .listen() #35353

@szmarczak

Description

@szmarczak

Is your feature request related to a problem? Please describe.

Currently it is possible to create an HTTP/2 in the following way:

const server = http2.createSecureServer({
	settings: {
		maxConcurrentStreams: 1000
	},
	key,
	cert
});

Let's assume you're having a server and it detected it's low on resources. Limiting maxConcurrentStreams could have a positive impact. Unfortunately it's not possible at the moment.

Describe the solution you'd like

server.updateSettings({
	maxConcurrentStreams: 100
});

Describe alternatives you've considered

None yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.http2Issues or PRs related to the http2 subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions