当进程打开了某个文件时,只要该进程保持打开该文件,即使将其删除,它依然存在于磁盘中。
When a process opens a file, it exists on disk even if deleted, as long as the process holds the file open.
您需要采用另一种方式:在事件发生前(您希望向客户端发送新信息来响应它),连接应该保持打开。
You need it the other way around: the connections should remain open until an event arises that you want to respond to by sending new information to the client.
注意:一旦一个工程被打开,在访问它的数据时它就必须保持打开状态。
Note: Once a project has been opened, it needs to remain open while its data is being accessed.
应用推荐