Refine the SIGHUP handling so that the socket isn't closed and re-opened if unnecessary. Concept: move body of the main loop into its own routine, add another loop there with a ReloadConfig exception handler that checks old_config.(listen, port) == new_config.(listen, port) and updates the server.boards dict if true.
Refine the
SIGHUPhandling so that the socket isn't closed and re-opened if unnecessary. Concept: move body of the main loop into its own routine, add another loop there with aReloadConfigexception handler that checksold_config.(listen, port) == new_config.(listen, port)and updates theserver.boardsdict if true.