Closed tomas closed 4 years ago
When a socket is closed or shutdown It takes some time for the system to cleanup. I think the linger time is usually a minute or two but it depends on the OS. Agoo sets the SO_REUSEPORT option when it binds to a port which allows it to restart and use the same port immediately. If Puma does not set that option it will not be able to bind until the linger time has elapsed. You might check and see if Ctrl-C on Puma cause the same behaviour when trying to restart Puma.
Can this be closed?
Yup, thanks!
I'm comparing RAM & CPU usage between Agoo and Puma and something weird just happened.
After shutting down Agoo via Ctrl-C I cannot launch Puma on the same port because it complains about the port being in use:
However if I restart Agoo on the very same port it launches without any problems.
Do you know what might be going on?