title: Python 3 Sockets - Can I keep a socket open while stopping and re-running a program?
body: <p>I've been scratching my head trying to figure out if this is possible.</p>
  
  <p>I have a server program running with about 30 different socket connections to it from all over the country. I need to update this server program now and although the client devices will automatically reconnect, its not totally reliable.</p>
  
  <p>I was wondering if there is a way of saving the socket object to a file? then load it back up when the server restarts? or forcefully keeping a socket open even after the program stops. This way the clients never disconnect at all.</p>
  
  <p>Could really do with hot swappable code here really!</p>