Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.http2Issues and 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