akka/akka-http

Http: Make PredefinedFromEntityUnmarshallers bail-out after certain nr of bytes read-in

Open

#143 aperta il 8 set 2016

Vedi su GitHub
 (9 commenti) (0 reazioni) (0 assegnatari)Scala (598 fork)batch import
1 - triagedbughelp wantedt:marshalling

Metriche repository

Star
 (1311 star)
Metriche merge PR
 (Merge medio 1g 10h) (2 PR mergiate in 30 g)

Descrizione

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.

Guida contributor