For the future you can paste flows directly in here. See this post for more details - How to share code or flow json
There doesn't seem to be any TCP work going on in that function. You are looking for something that does something with TCP and maybe doesn't properly clear up. Possibly whatever you are doing with the timeout after it times out, or maybe something else.