Reliability of UDP on localhost

前端 未结 3 1596
不知归路
不知归路 2021-01-04 09:57

I know that UDP is inherently unreliable, but when connecting to localhost I would expect the kernel handles the connection differently since everything can be handled inter

相关标签:
3条回答
  • 2021-01-04 10:23

    I don't think that UDP (or any other network protocol) says anything about different behavior when connecting to localhost. So the answer will depend on the specific kernel that you're using. Best to assume that UDP will behave like UDP.

    0 讨论(0)
  • 2021-01-04 10:34

    I repeat a previous answer to a related question. To remain portable always anticipate your UDP sockets might drop packets or receive out of order data.

    0 讨论(0)
  • 2021-01-04 10:37

    I have seen UDP to localhost dropping packets. We think we were overloading the kernel queue. All we know for sure is that it was dropping packets.

    0 讨论(0)
提交回复
热议问题