xen-org/xen-api-libs — pull request #71 by zli (2011-12-17 16:42:52+00:00)
Title: Propagate network errors out of Http_client module

... otherwise the callers (such as Xmlrpc_client) will get HTTP errors instead, hence lost the chance of diagnosing the network problems (e.g. stunnel issues).

Another possibility is to transform the Unix exception as module specific exception (or variant in the return type) and handle/wrap/propagate it in each upper layer (where necessary).

Signed-off-by: Zheng Li