Should you disconnect FTP after every file transaction -


what better regarding connection/disconnection in ftp? recommended disconnect after every file transaction? instance: want retrieve 2 files server , 1 file server b, manipulate them locally on computer , upload them server c.

connect -> retrieve file 1 -> disconnect connect c -> store file 1 -> disconnect connect -> retrieve file 2 -> disconnect connect c -> store file 2 -> disconnect  connect b -> retrieve file 3 -> disconnect connect c -> store file 3 -> disconnect 

or better cluster connections?

connect -> retrieve file 1                 retrieve file 2 -> disconnect connect b -> retrieve file 3 -> disconnect connect c -> store file 1                 store file 2                 store file 3 -> disconnect 

i using fritzbox , facing stability problems, therefore know method (theoretically) superior (in terms of stability ?!). lack insights of ftp protocol btw...

it depends on couple of things:

  1. the open amount of sessions server allowing. if few, best close session after each transfer / action, otherwise might block (your) other clients.
  2. if amount of sessions not problem, , not close sessions @ all, have lot of open connections on pc, not problem, sloppy.
  3. if need send lot of files, 10 files, loop through file-list , send 10 files , close connection afterwards. closing , opening connection every file inefficient , creating unnecessary traffic , burden on client & server-side.

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -