I am running a python app in a different network namespace and it opens a TCP connection to a websocket. The problem is that this connection has microfreezes. It would run fine for a minute approximately and then it would hang for a second. I think it's the network namespace problem because if I run outside it there is no problem.
I monitored the TCP buffers with ss -tm and what I notice is that when the freeze starts, the buffers also start to fill up. They seem to be empty the rest of the time. Any help would be appreciated.
I found the problem, the app tried to connect to a localhost socket. It failed
because that socket is open with the main ip and not in the network namespace.
Because the app is written in python it would hang while trying to connect.
network namespace TCP microfreeze