Feedback
Limit HTTP response body downloads
- Status
- Accepted
- Fixed in
- -
- Area
- compiler
- Source discussion
- -
- Last updated
- 2026-11-14
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Allow applications to set a maximum response-body size on URLConnection. Reject oversized responses while receiving them, before the entire body is buffered, and report a clear size-limit error. This lets crawlers and other clients bound memory use when a server returns an unexpectedly large response.