Releases: tinystruct/tinystruct-netty-http-server
Releases · tinystruct/tinystruct-netty-http-server
v1.0.4: Bump version to 1.0.4 and improve server lifecycle management
Version Updates: - Bump module version from 1.0.3 to 1.0.4 - Upgrade tinystruct dependency from 1.7.10 to 1.7.12 - Upgrade central-publishing-maven-plugin from 0.7.0 to 0.8.0 Server Lifecycle Improvements: - Add proper shutdown hook registration before server start - Store ChannelFuture as instance variable for proper cleanup - Improve stop() method with channel close synchronization - Remove redundant shutdown hook and finally block - Disable template requirement in init() SSL Configuration Enhancement: - Extract SSL configuration to dedicated configureSsl() method - Add support for custom SSL certificates via configuration - Read certificate/key paths from settings (ssl.certificate.path, ssl.key.path) - Fall back to self-signed certificate with warning if paths not provided - Add logging for production SSL configuration recommendations Bug Fixes: - Fix SSE Content-Type header from invalid "text/event-stream, application/json" to proper "text/event-stream; charset=utf-8" - Simplify exceptionCaught() method signature by removing Context parameter Code Quality: - Add missing File import - Improve error handling in channel close with InterruptedException handling - Better separation of concerns with SSL configuration extraction