\$\begingroup\$

My concerns:

Is this module thread safe?

Is there any obvious performance issues I missed?

Is there a better container type to use for GENERATED_ADDRESSES other than a list?

other than a list? Is there any flags I can pass to socket to make the try / connect any faster?