π Dito 0.7.5 - Response Limits & Enhanced Error Handling π
What's New
π Response Body Size Management
- Global and per-location response size limits with intelligent Content-Length detection
- Proper 413 status codes (fixed from incorrect 502 responses)
- Early limit detection prevents unnecessary upstream data transfer
π¨ Enhanced Error Handling
- Structured JSON error responses with detailed diagnostic information
- Comprehensive warning logging with byte-level precision and path tracking
- Clean response termination preventing partial data transmission
β‘ Smart Response Processing
- Intelligent buffering strategy with configurable per-location control
- Zero-chunking responses for small payloads with proper Content-Length headers
- Memory-efficient processing with thread-safe response handling
π οΈ Performance Optimizations
- Memory pool optimizations to reduce garbage collection pressure
- Allocation-free buffer management for reverse proxy operations
- Thread-safe response interceptor with proper mutex usage
βοΈ Configuration Enhancements
- Global response limits via
response_limits.max_response_body_size - Per-location overrides with
max_response_body_sizein location blocks - Response buffering control with
disable_response_bufferingoption
π Documentation Updates
- Complete response limits configuration with real-world examples
- JSON error format specifications and troubleshooting guides