假设状态流程为 enum{ STATUS_IDLE, STATUS_CONNECTING, STATUS_OPEN, STATUS_CLOSING, STATUS_CLOSED }; 所有带ING的中间状态都需要有time out的保护