Fixed in PR #329. server.cmain() reduced from 265 to 27 lines as a dispatcher over configure_server_process/run_hash_credentials_tool/run_stdio_server/run_daemon_server/load_daemon_policy/validate_daemon_credentials/create_daemon_limits/start_listener; exit codes, output, and fail-closed behavior unchanged, with previously-leaked globals now freed on error paths. Closing as completed.
Fixed in PR #329. `server.c` `main()` reduced from 265 to 27 lines as a dispatcher over `configure_server_process`/`run_hash_credentials_tool`/`run_stdio_server`/`run_daemon_server`/`load_daemon_policy`/`validate_daemon_credentials`/`create_daemon_limits`/`start_listener`; exit codes, output, and fail-closed behavior unchanged, with previously-leaked globals now freed on error paths. Closing as completed.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
src/server/server.c:1302-1566main()mixes CLI parsing, the standalone--hash-credentialsmode,--stdio, daemon-config loading + credential validation, listener/TLS setup, and daemonization (265 lines).Work: extract
run_hash_credentials_tool(),run_stdio_server(), andrun_daemon_server()(each <=60 lines);mainbecomes a dispatcher.Fixed in PR #329.
server.cmain()reduced from 265 to 27 lines as a dispatcher overconfigure_server_process/run_hash_credentials_tool/run_stdio_server/run_daemon_server/load_daemon_policy/validate_daemon_credentials/create_daemon_limits/start_listener; exit codes, output, and fail-closed behavior unchanged, with previously-leaked globals now freed on error paths. Closing as completed.