while the server restarted, the client how to know that it should reconnect
while the server restarted, the client how to know that it should reconnect