title: Python: Upload huge amount of files via FTP
body: <p>I'm developing a python script that monitors a directory (using libinotify) for new files and for each new file it does some processing and then copies it to a storage server. We were using a NFS mount but had some performance issues and now we are testing with FTP. It looks that FTP is using far less resources than nfs ( the load is always under 2, with nfs it was above 5 ).</p>
  
  <p>The problem we are having now is the amount of connections that keeps open in TIME_WAIT state. The storage has peaks of about 15k connections in time wait.</p>
  
  <p>I was wondering if there is some way to re-use previous connection for new transfers.</p>
  
  <p>Anyone knows if there is some way of doing that?</p>
  
  <p>Thanks</p>