title: Python socket security
body: <p>I plan to use socket (<a href="https://docs.python.org/2/library/socket.html#example" rel="nofollow">https://docs.python.org/2/library/socket.html#example</a>) to allow a simple software i'm writing to be clustered across multiple computers, and i'm wondering what security risks there are with using Socket. I know that open ports CAN be vulnerable depending on the software behind them, and I know how to cleanse input data and such to prevent buffer overflow type attacks and code injection, but are there any major security vulnerabilities using Socket? Is there a way to make it secure for prolonged use of the port?</p>
  
  <p>I am just starting to delve into programming that involves networking, so if I have the wrong idea entirely please let me know.</p>