in reply to Re^7: Multithreaded Server Crashes under heavy load
in thread Multithreaded Server Crashes under heavy load
Hey sorry about the CSV! I just opened it up in Libre Office as a comma delimited file, and it looked good. BUT! Good news. Think you're definitely right that I'm not closing connections properly. Think this is caused by commands that need to open other file handles, and not handling any errors correctly. For instance, I think the only command I included that has that behavior is the PUT command, which does open( PUTFILE, ">$outfile" ) or threads->exit;. The threads->exit is clearly getting called, leaving the socket open. I fixed all those and added more messages to see when exactly it was happening, and it definitely seems to be working better. Have on more part of the code to look at using a subroutine that does not appear to be thread friendly, but will update on progress once I've determined if I solved it or not. Thanks for the direction!