title: Reuse socket connection between client and server
body: <p>I have a client written in python communicate with a server written in Go via TCP Socket. Currently, I create a new socket object and then connect to Go server every time. More specifically, suppose my go server listens on <code>localhost:4040</code>, whenever I connect to from python server I has a different source address <code>(localhost:6379, 6378, ...)</code> . I wonder if there is a way to leverage on old connections (like a connection pool) rather than creating the new one every time. If so, how to determine the connection has finished and became idle , do I need an extra ACK message for that? Thanks.</p>