vercel / micro

Asynchronous HTTP microservices
MIT License
10.59k stars 459 forks source link

Add a --keep-alive-timeout flag #442

Closed elhoyos closed 2 years ago

elhoyos commented 4 years ago

Say for example, that my load balancer (lb) is configured to keep connections idle up to 60 seconds. I want to be able to do the following and avoid the chances that my lb attempts to connect to a timed out connection:

micro -l tcp://0.0.0.0:3000 -k 70000

This situation has been documented in several places. Here's is an example.

Makes sense to create a flag (--keep-alive-timeout / -k) for this?

leerob commented 2 years ago

Closing as stale - if you're open to contributing, I'd be happy to review a PR!