mistakster / throttle-proxy

Throttle HTTP/HTTPS/SOCKS proxy server
121 stars 24 forks source link

Respect kill signals #23

Open EugenMayer opened 4 years ago

EugenMayer commented 4 years ago

Seems like, at least in the docker image, you are not respecting any kill signals. The container needs a long time to stop and gets KILLed in the end.

Thanks!

EugenMayer commented 4 years ago

For now, anybody having troubles with the slow shutdown, just add this to your docker-compose.yml for the service

stop_signal: KILL

This will force docker to send kill right away, not using the soft SIGTERM which is not needed here anyway, we have no persistence or anything we could harm