开发者

process termination

I have 2 processes and they send UDP messeges. They don't read the messages immeditely 开发者_运维问答and sometimes when they read the messages they can read a bulk of them. I saw that when one of the processes is down the other one is still getting those messages.

How come ? it is down.

Thanks


You keep getting packets after one process crashes because the OS buffers the incoming packets. See for example this discussion on UDP Buffering.

When working with unconnected UDP sockets there is no way for either pier to know if the other pier has crashed other than sending round trip keep alive packets.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜