Connection failure handling

Content Platform Tenant Management Help

File Size
4269 KB
Part Number

You should retry a request if either of these happens:

  • The client cannot establish a connection to the HCP system through the API.
  • The connection breaks while HCP is processing a request. In this case, the most likely cause is that the node processing the request became unavailable.

When retrying the request:

  • If the original request used the hostname of the HCP system in the URL, repeat the request in the same way.
  • If the original request used an IP address, retry the request using either a different IP address or the hostname of the system.

If the connection breaks while HCP is processing a GET request, you may not know whether the returned data is all or only some of the object data. In this case, you can check the number of returned bytes against the content length returned in the Content-Length response header. If the numbers match, the returned data is complete.