socket.pending
如果套接字尚未连接,则为 true,因为 .connect() 尚未被调用,或者因为它仍在连接过程中(请参阅 socket.connecting)。
¥This is true if the socket is not connected yet, either because .connect()
has not yet been called or because it is still in the process of connecting
(see socket.connecting).