Skip to content

Commit 61d0634

Browse files
authored
Zowe Suite v2.17.0
2 parents 83f70e8 + b1e08d7 commit 61d0634

9 files changed

+33
-8
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to the ZSS package will be documented in this file.
44

5+
## `2.17.0`
6+
- Code to configure the SLH block size of the http server through 'httpRequestHeapMaxBlocks' in the yaml.(#701)
7+
58
## `2.16.0`
69
- Bugfix: AUX should take leap seconds into account in their log messages' timestamp (#690, #691)
710

bin/configure.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ if [ -n "${ZWE_components_zss_pluginsDir}" ]; then
2525
fi
2626

2727
if [ "${ZWE_components_app_server_enabled}" != "true" ]; then
28-
_CEE_RUNOPTS="XPLINK(ON),HEAPPOOLS(OFF)" ${ZWE_zowe_runtimeDirectory}/bin/utils/configmgr -script "${ZWE_zowe_runtimeDirectory}/components/zss/bin/plugins-init.js"
28+
_CEE_RUNOPTS="XPLINK(ON),HEAPPOOLS(OFF),HEAPPOOLS64(OFF)" ${ZWE_zowe_runtimeDirectory}/bin/utils/configmgr -script "${ZWE_zowe_runtimeDirectory}/components/zss/bin/plugins-init.js"
2929
fi
3030

build/zis.proj.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
PROJECT="zis"
2-
VERSION=2.16.0
3-
DYNLINK_PLUGIN_VERSION=9
2+
VERSION=2.17.0
3+
DYNLINK_PLUGIN_VERSION=10
44
DEPS=""

build/zss.proj.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PROJECT="zss"
2-
VERSION=2.16.0
2+
VERSION=2.17.0
33
DEPS="QUICKJS LIBYAML"
44

55
QUICKJS="quickjs"

c/zss.c

+22
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,27 @@ static void setPrivilegedServerName(HttpServer *server, JsonObject *mvdSettings,
355355
}
356356
#endif /* __ZOWE_OS_ZOS */
357357

358+
static void setHttpRequestHeapMaxBlocks(HttpServer *server, ConfigManager *configmgr){
359+
360+
int maxBlocks = 0;
361+
int getStatus = cfgGetIntC(configmgr,ZSS_CFGNAME,&maxBlocks,3,"components","zss","httpHeapMaxBlocks");
362+
363+
if (getStatus == ZCFG_SUCCESS){
364+
if (maxBlocks > HTTP_REQUEST_HEAP_MAX_BLOCKS){
365+
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_INFO, "httpHeapMaxBlocks out of range, max value is %d\n",HTTP_REQUEST_HEAP_MAX_BLOCKS);
366+
maxBlocks = HTTP_REQUEST_HEAP_MAX_BLOCKS;
367+
} else if (maxBlocks < HTTP_REQUEST_HEAP_MIN_BLOCKS){
368+
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_INFO, "httpHeapMaxBlocks out of range, min value is %d\n",HTTP_REQUEST_HEAP_MIN_BLOCKS);
369+
maxBlocks = HTTP_REQUEST_HEAP_MIN_BLOCKS;
370+
}
371+
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_INFO, "httpHeapMaxBlocks should be between %d and %d\n",HTTP_REQUEST_HEAP_MIN_BLOCKS,HTTP_REQUEST_HEAP_MAX_BLOCKS);
372+
} else{
373+
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_INFO, "fallback to default server settings\n");
374+
maxBlocks = HTTP_REQUEST_HEAP_DEFAULT_BLOCKS;
375+
}
376+
server->config->httpRequestHeapMaxBlocks = (unsigned int)maxBlocks;
377+
}
378+
358379
static void loadWebServerConfigV2(HttpServer *server,
359380
ConfigManager *configmgr,
360381
hashtable *htUsers,
@@ -370,6 +391,7 @@ static void loadWebServerConfigV2(HttpServer *server,
370391
server->config->userTimeouts = htUsers;
371392
server->config->groupTimeouts = htGroups;
372393
server->config->defaultTimeout = defaultSessionTimeout;
394+
setHttpRequestHeapMaxBlocks(server, configmgr);
373395
registerHttpServiceOfLastResort(server,NULL);
374396
#ifdef __ZOWE_OS_ZOS
375397
setPrivilegedServerNameV2(server, configmgr);

defaults.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ components:
22
zss:
33
port: 7557
44
crossMemoryServerName: ${{ ()=> { if (zowe.environments?.ZWED_privilegedServerName) { return zowe.environments.ZWED_privilegedServerName } else { if (zowe.environments?.ZWES_XMEM_SERVER_NAME) { return zowe.environments.ZWES_XMEM_SERVER_NAME } else { return "ZWESIS_STD" } } }() }}
5-
tls: true
5+
tls: "${{ ()=> { if (components.zss.zowe?.network?.server?.tls?.attls) { return false } else if (zowe.network?.server?.tls?.attls) { return false } else { return true } }() }}"
66
productDir: ${{ zowe.runtimeDirectory }}/components/zss/defaults
77
pluginsDir: ${{ zowe.workspaceDirectory }}/app-server/plugins
88
instanceDir: ${{ zowe.workspaceDirectory }}/zss

manifest.template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: zss
33
# Component identifier. This identifier matches artifact path in Zowe Artifactory https://zowe.jfrog.io/.
44
id: org.zowe.zss
55
# Without the v
6-
version: 2.16.0
6+
version: 2.17.0
77
# Component version is defined in gradle.properties for Gradle project
88
# Human readable component name
99
title: Zowe System Services (ZSS)

plugins/zis/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Refer to that source for the full plugin sample.
114114
A ZIS plugin is a load module with the following characteristics:
115115
* AMODE 64
116116
* Reentrant
117-
* The result of call a ZIS plugin lod module is a plugin descriptor data
117+
* The result of a call to a ZIS plugin load module is a plugin descriptor data
118118
structure mapped by the C struct [`ZISPlugin`](https://github.com/zowe/zss/blob/82c6f2d30951d64fb1bb6487c2dde92700b91552/h/zis/plugin.h#L81-L112)
119119

120120
### Services

0 commit comments

Comments
 (0)