socket.engine icon indicating copy to clipboard operation
socket.engine copied to clipboard

100% CPU on second run...

Open jaredwa opened this issue 5 years ago • 1 comments

No idea why, but if I restart my computer and start fresh, my script runs at around 14% cpu. If I kill it and start over, it runs at 100%. Any ideas?

jaredwa avatar Jun 13 '20 23:06 jaredwa

Are you making sure to end the sockets when you close your program? Because of the multhreading in python, and the way the sockets are created in Node.js, if you don't explicitly close them at the end of your program they will continue running in the background.

0xJeremy avatar Jun 14 '20 18:06 0xJeremy