wangyu- / udp2raw

A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP Traffic by using Raw Socket,helps you Bypass UDP FireWalls(or Unstable UDP Environment)
MIT License
7.28k stars 1.17k forks source link

one cpu core is 100% in the client side. #478

Open edthepurple opened 1 year ago

edthepurple commented 1 year ago

In case of handling a lot of connections, the client side uses only one cpu core and pegs it at 100% usage while the other cores remain unused.

--raw-mode icmp with the latest version of binaries.

wangyu- commented 1 year ago

The program is written as this. It only uses a single core. On a modern good cpu udp2raw on a single core can support beyond 500mbps if encryption is disabled.

If you really need multi-core you can take a look at Phantun which is similiar but not identical to udp2raw, and supports multiple cores

edthepurple commented 1 year ago

is there a way you can make the udp2raw multi threaded?