Most likely nothing. The address is used when using the remaining connections from the previous instance. As soon as they are all disconnected, the address will be automatically freed.
If you want to speed up this process, you can set the SO_REUSEADDR socket option before binding. See the PERL socket documentation for more information. "if the server dies without outstanding connections, the port will not be immediately reused unless you use the SO_REUSEADDR parameter with the setsockopt () function.
source share