title: IPC: Connect for each request or keep socket open?
body: <p>I am planning to use sockets (local TCP) to communicate between two processes (running locally). One process will act as a server, but both processes send messages to each other asynchronously. Should I keep the socket connection open for the lifetime of the processes, or re-connect for each request?</p>
  
  <p>Are there any problems that may occur if I keep a local socket open?</p>