PhotonLibOS
PhotonLibOS copied to clipboard
Close connection in different photon thread
TCP connection is running in one photon thread, in a way of busy loop receiving and sending data and yield. Is it safe to close this connection from another photon thread (both photon threads are in the same vCPU) ? If not, what is the recommend way ?
Please refer to photon::new_tcp_socket_pool. It is safe within one vCPU.