akka/akka-http
GitHub で見るHttp: Make PredefinedFromEntityUnmarshallers bail-out after certain nr of bytes read-in
Open
#143 opened on 2016年9月8日
1 - triagedbughelp wantedt:marshalling
Repository metrics
- Stars
- (1,311 stars)
- PR merge metrics
- (平均マージ 1d 10h) (30d で 2 merged PRs)
説明
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.