Http: Make PredefinedFromEntityUnmarshallers bail-out after certain nr of bytes read-in
#143 aberto em 8 de set. de 2016
Métricas do repositório
- Stars
- (1.311 stars)
- Métricas de merge de PR
- (Mesclagem média 1d 10h) (2 fundiu PRs em 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.