cloudflare / pingora

A library for building fast, reliable and evolvable network services.
Apache License 2.0
21.42k stars 1.18k forks source link

Add configurations for grace period and graceful shutdown timeout #98

Closed hnakamur closed 4 months ago

hnakamur commented 7 months ago

What is the problem your feature solves, or the need it fulfills?

Currently grace period and graceful shutdown timeout are constants and cannot be modified.

This causes unwanted 5 minutes delay before calling Runtime::shutdown_timeout.

Describe the solution you'd like

Add configurations for grace period and graceful shutdown timeout. With these configurations, you can set grace period to 0 and adjust graceful shutdown timeout as you like.

Describe alternatives you've considered

None.

Additional context

None.

andrewhavck commented 4 months ago

Closing this as the change was synced.