Calling server.close() is not enough – the server will hang until there are open connections. This could mean couple of seconds or hours. You need to track connections and terminate them one by one. Refer to my article about connection handling in Node.js dev.to/gajus/how-to-terminate-a-ht....
Software engineer as profession and hobby @joppyme co-founder former @letgo and @trovit Creator of the stupid initiative #deployFridayFest 🤯 Talk with me at #ThePonycorns 🦄 discord.gg/98qwsBNAfr
Calling
server.close()
is not enough – the server will hang until there are open connections. This could mean couple of seconds or hours. You need to track connections and terminate them one by one. Refer to my article about connection handling in Node.js dev.to/gajus/how-to-terminate-a-ht....Awesome 🙌 !