replied to some time ago:
Yes, it uses Bun’s
server.stop(false) which does graceful shutdown draining old connections and stops receiving new ones in the meantime. I’m not sure what happens with those new ones that arrive after that call but before the server switch, but that happens in under a second and there is a tiny retry browsers do on 503 so it should be ok.