Changed tool to use a single socket for all requests during a single run. As far as I can tell from observing traffic between FlashPrint and my printer, that's how it's generally done. This seems to improve the reliability of file uploads to the printer, though it is still not 100%...