feat: replace Lua config with Parmlib parser (DD:HTTPPRM)#41
Merged
mgrossmann merged 1 commit intomainfrom Apr 8, 2026
Merged
Conversation
Replace the Lua-based httpconf.c (1286 lines) with a line-based KEY=VALUE Parmlib parser httpprm.c (540 lines) that reads from DD:HTTPPRM. Follows the same pattern as FTPD and UFSD. - New src/httpprm.c: reads DD:HTTPPRM, KEY=VALUE format, comments with # or *, missing DD starts with defaults (warning) - Delete src/httpconf.c: Lua config engine removed - CGI registration via CGI=PROGRAM /path/* lines (no defaults) - No MQTT or embedded FTPD initialization (confirmed removals) - Socket bind with retry logic preserved from httpconf.c - All settings carried over: PORT, MINTASK, MAXTASK, CLIENT_TIMEOUT, LOGIN, TZOFFSET, DEBUG, UFS, DOCROOT, CODEPAGE, BIND_TRIES, BIND_SLEEP, LISTEN_QUEUE, CGI, CGILUA_*, CLIENT_STATS_*, etc. HTTPD struct changes: - lua_State *config → void *unused_60 (preserve offsets) - New fields: ufs_enabled, dbg_enabled, bind_tries, bind_sleep, listen_queue, codepage[16] New samplib/ directory: - samplib/httpd: STC JCL procedure (matching FTPD/UFSD pattern) - samplib/httpprm0: sample Parmlib member with all settings Fixes #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
httpconf.c(1286 lines) with KEY=VALUE Parmlib parserhttpprm.c(540 lines)DD:HTTPPRM— same pattern as FTPD (DD:FTPDPRM) and UFSD (DD:UFSDPRM)CGI=PROGRAM /path/*lua_State *config→void *unused_60(offset-stable)samplib/with STC proc and sample Parmlib memberFixes #40
Test plan
/zosmf/*/.dsrvserver display works/lua/*) still works