Skip to content

Improve DNS resolution for https and gridftp plugins

Joao Pedro Lopes requested to merge dns_resolution into develop

To avoid a long if/else statement in the src/core/transfer/gfal_transfer_filecopy.c file with the protocols eligible for DNS resolution, this MR moves the DNS resolution logic back to the plugin level.

The src/utils/network/gfal2_network.c file contains all the necessary functions to resolve a DNS alias to a single hostname. This file is included by the plugins which need it. So far only gridftp and httptransfers need this mechanism.

This MR also replaces the logs from ERROR to WARNING when the DNS resolution process fails. This is done to avoid aborting the copy process when the DNS resolution fails.

Merge request reports