Shoul i keep a socket open for long time?
I have two computers on a network and some python programs running on them. Occasionally the programs will send some data to each other. There may be a long silence between individual messages. Should I keep an open socket all the time or create a new socket for every message?
Which of these is better:
or this one
#keeps an open socket
#creates a new socket for each individual communication
Windows is not user friendly,it's just user familiar