Skip to content

Tags: tinystruct/tinystruct-netty-http-server

Tags

v1.0.4

Toggle v1.0.4's commit message
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

v1.0.3

Toggle v1.0.3's commit message
Update the tinystruct version to be 1.7.10.

v1.0.2

Toggle v1.0.2's commit message
Remove METHOD from context.

v1.0.1

Toggle v1.0.1's commit message
CVE-2025-58056: Fix the vulnerabiltiy for netty.

v1.0.0

Toggle v1.0.0's commit message
Release the 1.0.0 version for netty http server support.