akka/akka-http
View on GitHubHttp: Make PredefinedFromEntityUnmarshallers bail-out after certain nr of bytes read-in
Open
#143 opened on Sep 8, 2016
1 - triagedbughelp wantedt:marshalling
Repository metrics
- Stars
- (1,311 stars)
- PR merge metrics
- (Avg merge 1d 10h) (2 merged PRs in 30d)
Description
Issue by ktoso Thursday Dec 03, 2015 at 14:52 GMT Originally opened as https://github.com/akka/akka/issues/19080
As discussed in https://github.com/akka/akka/pull/19042#discussion_r46096801
We are currently limiting the total number of bytes in a request body, however the same does not happen for individual Marshallers. This is most noticeably not nice when using FormFields or streaming Source[Element]. We should provide a config value to be provided implicitly after how many bytes such marshaller should bail out – we'd have "per element" limit and "per entire request" limit then.