pyModbusTCP packet buffer when no connection eats memory
I have a working code that I use to send ModbusTCP commands to a device that can read them and perform actions. When network is fine, it works as expected. But if link is down, the packets are stored and buffered somewhere in either the pyModbusTCP or Linux (debian 9 based) buffers, and when the connection re-establishes, are the packets are flushed, causing some unintended behaviour.