operation valid only when the port is open是什么意思