Open GoogleCodeExporter opened 9 years ago
I'm not really suer I follow the setup.
If the machine floats to another network, it is usually not possible to
maintain the connection, as the IP changes, and allowing a persistent TCP
connection with changed IPs is usually not allowed because of the security
problems this may cause. Because of network setups, it is also possible that a
given hostname must be resolved to another IP, depending on the current
network, which would make caching op IP addresses problematic.
I have deliberately made all backends "encapsulated" to ensure that each
request is a separate transaction, which means that each put/get/list/delete
operation will create a connection to the server, do some work, and then close
the connection.
This ensures that even with a changing network, (eg. hibernate while doing
backup, then arrive at new network later) and errors/assumptions in one
operation cannot influence another operation.
The downside to this is that there is some overhead in the setup/teardown of a
connection, but for the current version of Duplicati I have chosen to favor
stability over speed in this case.
As for the numerous lookups, Duplicati uses whatever service .Net uses, which
means whatever Windows decides. If windows decides to cache hostnames (dns
lookups), so will Duplicati, and if all hostnames are looked up by windows,
Duplicati will do the same.
Original comment by kenneth@hexad.dk
on 26 Mar 2011 at 11:05
Original issue reported on code.google.com by
Baris.E...@gmail.com
on 24 Mar 2011 at 8:12