Should I use (non-blocking) NIO for UDP?

According to this message, UDP is simply not blocked. Are there any advantages to using a (non-blocking) NIO API for UDP? Or should I just use the simpler "traditional" io API?

+2
source share
2 answers

At the risk of just pointing you out, the comments on this post explain that UDP does not block the TCP ACK, but you can still block the kernel buffer overflow. This will only happen if you have a very large UDP packet.

+2
source

, . NIO (), .

0

Source: https://habr.com/ru/post/1794999/


All Articles