From: Jeremy Stanley Date: Sat, 17 Apr 2021 16:07:33 +0000 (+0000) Subject: Retry client connections in selftest X-Git-Tag: 0.4.0~1 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=743c99fee8de7db57253daa15602bb4af6f85eda;hp=743c99fee8de7db57253daa15602bb4af6f85eda Retry client connections in selftest Replace a hard-coded delay after process start with a dynamic client connection retry, which attempts to connect up to five times with the first being immediate while subsequent connections observe an exponential backoff over a three-second period before giving up. This improves both speed and stability of test runs. Also combine the ConnectionResetError and EOFError conditions which could be raised later once the socket is in use, as the end result of either is effectively the same. ---