Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set keepAliveTimeout and headersTimeout? #535

Closed
nrcmkoh opened this issue Jan 31, 2020 · 2 comments
Closed

How to set keepAliveTimeout and headersTimeout? #535

nrcmkoh opened this issue Jan 31, 2020 · 2 comments
Labels
type: question Questions about the usage of the library.

Comments

@nrcmkoh
Copy link

nrcmkoh commented Jan 31, 2020

Is there a way to set node's server.keepAliveTimeout and server.headersTimeout?

I've tried this, but it doesn't appear to be working:

const server = createKoaServer({
  ...
});

server.listen(3000);
server.keepAliveTimeout = 90 * 1000;
server.headersTimeout = 95 * 1000;

If anyone's interested as to why I'm trying to do this, it's because of an issue with running node behind AWS Load Balancer.

@attilaorosz attilaorosz added the type: question Questions about the usage of the library. label Feb 16, 2022
@attilaorosz
Copy link
Member

createKoaServer returns the koa server instance so unfortunately this is out of scope of this package. Maybe you will find some answers to this in the koa repo.

@github-actions
Copy link

github-actions bot commented Jan 9, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: question Questions about the usage of the library.
Development

No branches or pull requests

2 participants