Skip to content

Response Limits & Enhanced Error Handling

Latest

Choose a tag to compare

@andrearaponi andrearaponi released this 08 Jun 17:39
ae1a479

πŸ‘‰ 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_size in location blocks
  • Response buffering control with disable_response_buffering option

πŸ“š Documentation Updates

  • Complete response limits configuration with real-world examples
  • JSON error format specifications and troubleshooting guides