zowe / zowe-common-c

C Libraries for various OS & Networking needs
Eclipse Public License 2.0
10 stars 30 forks source link

Adding httpClientSessionInitv2 which through an argument will give the internal return code #499

Closed Gautham-coder closed 1 week ago

Gautham-coder commented 3 weeks ago

Problem

httpClientSessionInit has its own set of status values it returns, but the actual rc/rsn of commands it does within are hidden behind compile-time printf statements. This is unhelpful because this function does fail sometimes, and on zOS the reason is opaque and requires a GSK trace to then discover the cause. It just costs extra debug time then.

Proposed changes

Here we have httpClientSessionInit to httpClientSessionInitv2 to allow passing back internal rc. The original api still exists and calls the new version by passing a dummy argument.

This PR addresses Issue: https://github.com/zowe/zowe-common-c/issues/468

Type of change

Please delete options that are not relevant.

PR Checklist

Please delete options that are not relevant.