Skip to content

Commit

Permalink
CA-37279: Stunnel error from WLB connect "No route to host"
Browse files Browse the repository at this point in the history
Understand "No route to host" as an expected error message from stunnel, and turn that into API error WLB_UNKNOWN_HOST if we see it when contacting WLB.

This is two patches, one for xen-api-libs.hg, and one for xen-api.hg.

Signed-off-by: Ewan Mellor <ewan.mellor@eu.citrix.com>
  • Loading branch information
citrix-openstack-jenkins-xx committed Apr 29, 2010
1 parent efacecf commit 6ddfb0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ocaml/xapi/workload_balancing.ml
Expand Up @@ -305,6 +305,7 @@ let wlb_request ~__context ~host ~port ~auth ~meth ~params ~handler ~enable_log
match error_msg with
| "Connection refused" ->
raise_connection_refused ()
| "No route to host"
| "No host resolved" ->
raise_unknown_host ()
| "Invalid argument" ->
Expand Down

0 comments on commit 6ddfb0f

Please sign in to comment.