How are peers chosen?

I have the following scenario. One folder that is shared with a machine in Germany, Hong Kong, and Canada. These machines are stationary and never change location. Now I also have my phone hooked up to sync with that folder. Does syncthing do the ‘smart’ thing and pull the latest blocks from the Hong Kong machine if I am connected from the office there? Or does it go all the way to Germany for some blocks?

Thanks, Chris

It’ll start by round robin, then ask for more blocks from the devices that return them quickest. So yes, you’ll get some blocks from each location but most blocks from the quickest one.