Take the 2-minute tour ×  I am totally confused right now.
Edit: Okay, nevermind. The Python socket as well is starting to
do it now.  Edit 2: Well, not quite sure if this is causing high
CPU usage, but something randomly is. Is there an efficient way
to figure out what is causing spikes in the usage? This project
is a bit large and has various threads.  I have an asynchronous
server that listens and waits for incoming connections, then
keeps them alive and waits for the socket to flush and give the
server data. It is only closed when the user wants the socket to
be closed.  However, whenever I let a socket & stream stay
connected, it starts to go haywire and starts sending empty data
on an endless loop... it may take anywhere from 15 seconds to
over a minute before it starts going wack. If I let it go for a
really long time, it starts to cause really high CPU usage.
Aside from the high CPU usage, oddly enough, everything works as
it should; messages are sent & received fine.  This is my read
callback funct