Open novedevo opened 3 years ago
RFC-compliant (see d789975e0a7021a4091ec4ab3b8ef0cfb090e09c and related commits), but more processes should probably check for signals (e.g. test for signals while waiting for a DNS resolution)
b25aa3eabef9d1eabe8d3d05cc59a7767e49b9af is relevant
we can't close any connections without sending 421 ( we can send asynchronously if necessary), so we should provide a way to shutdown the program (perhaps responding to kill -9 signals or something) that sends 421s to all the clients and saves any necessary information to disk before closing