Improved TCP connection mode