Open gridl0ck opened 8 months ago
Ops, I accidentally marked this PR as "Ready for review". Is it ready to test or is it anything else you wanna do before we review it?
The only thing that needs work is a way to gracefully close all the threads and print out the summary. When I was testing it with my simple http server, the only way I could get them to exit was to trigger an exception by closing the server. The summary prints and everything after the fact but closing it - even with a keyboard interrupt - doesnt seem to trigger the close function.
Feel free to change how I handle threads if it will make it easier to close em. My implementation of threads are probably not the best.
This is my proposed solution to #7. It contains a logger implementation and a locks to prevent accessing shared variables across threads.