We had an issue today where some code went crazy and started slamming one of engines with new connection requests, which led to all kinds of fun problems with dynamically allocated shared memory segments, out of memory problems and eventually an engine reboot.
I was taking a look at the code for the application to try and figure out what went wrong and I saw something like the following. It wasn’t the cause of the problem, but I don’t think it helped.
for i = 0; i < 5; i++:
ret = connect_to_da...