Description
So I've implemented a simple server here. You can build this with cargo build
and running it takes a --socket
argument for the address it should listen on.
The goal was to test a udp based syslog application. All this really does is check the UTF8 datagrams to valid strings, and print them.
The problem is I see 1 datagram, then it just consumes 100% cpu infinitely spinning on a single core. I can see in wireshark that my remote services are still sending packets, but the only data I'm seeing is Async::NotReady
.
netstat -vaun
shows myself listening on the expected port and that it is open.
There isn't every anything to encode, I'm just looking for a stream of incoming datagrams.
version info:
rustc 1.26.0-nightly (29f5c699b 2018-02-27)
rustc 1.24.0 (stable)
display idenatical behavior. I'm on Ubuntu 16.04.04 (kernel 4.4.0-116-generic)
Update sometimes I just see no frames, have a port open, and packets hitting the port, and I'm still spinning at 100% cpu with no data.