Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more arguments to httpClientSessionInit to allow passing back rc #727

Open
wants to merge 1 commit into
base: v2.x/staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the ZSS package will be documented in this file.
## `2.18.1`
- Bugfix: Support cross-memory server parameters longer than 128 characters (#684)
- Enhancement: Expose new cross-memory server's functions in dynlink (#684)
- Enhancement: Adding more arguments to httpClientSessionInit to allow passing back rc (#727)

## `2.18.0`
- Change log level for setting default value of 'httpRequestHeapMaxBlocks' to DEBUG instead of INFO.(#719)
Expand Down
2 changes: 1 addition & 1 deletion c/jwk.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static Json *doRequest(ShortLivedHeap *slh, HttpClientSettings *clientSettings,
*rc = JWK_STATUS_HTTP_CONTEXT_ERROR;
break;
}
*rsn = httpClientSessionInit(httpClientContext, &session);
*rsn = httpClientSessionInit2(httpClientContext, &session, rc);
if (*rsn) {
*rc = JWK_STATUS_HTTP_REQ_INIT_ERROR;
break;
Expand Down
3 changes: 2 additions & 1 deletion c/storageApiml.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ static int transformHttpStatus(int httpStatus) {
static ApimlResponse *apimlDoRequest(ApimlStorage *storage, ApimlRequest *request, int *statusOut) {
int status = 0;
int statusCode = 0;
int rc = 0;
TlsEnvironment *tlsEnv = storage->tlsEnv;
HttpClientSettings *clientSettings = storage->clientSettings;
HttpClientContext *httpClientContext = NULL;
Expand All @@ -277,7 +278,7 @@ static ApimlResponse *apimlDoRequest(ApimlStorage *storage, ApimlRequest *reques
*statusOut = STORAGE_STATUS_HTTP_ERROR;
break;
}
status = httpClientSessionInit(httpClientContext, &session);
status = httpClientSessionInit2(httpClientContext, &session, &rc);
if (status) {
zowelog(NULL, LOG_COMP_ID_APIML_STORAGE, ZOWE_LOG_DEBUG, "error initing session: %d\n", status);
*statusOut = STORAGE_STATUS_HTTP_ERROR;
Expand Down
2 changes: 1 addition & 1 deletion deps/zowe-common-c
Loading