Hi, sry for late response. I have a lot of other work - this is just hobby, low priority. But still can you describe steps to reproduce the problem? How can i reproduce it? I will look at the problem.
Also TcpClient.status() might be buggy, but what firmware version are you running?
As far as i understand your fix - if new client is connected within the same IP address, you just close the old one? It seems legit, can you please “clean it” and prepare Merge request, i will accept it.