{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/wai/issues/560","repository_url":"https://api.github.com/repos/yesodweb/wai","labels_url":"https://api.github.com/repos/yesodweb/wai/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/wai/issues/560/comments","events_url":"https://api.github.com/repos/yesodweb/wai/issues/560/events","html_url":"https://github.com/yesodweb/wai/issues/560","id":162124393,"number":560,"title":"Memory exhaustion with tempFileBackend?","user":{"login":"hce","id":147689,"avatar_url":"https://avatars.githubusercontent.com/u/147689?v=3","gravatar_id":"","url":"https://api.github.com/users/hce","html_url":"https://github.com/hce","followers_url":"https://api.github.com/users/hce/followers","following_url":"https://api.github.com/users/hce/following{/other_user}","gists_url":"https://api.github.com/users/hce/gists{/gist_id}","starred_url":"https://api.github.com/users/hce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hce/subscriptions","organizations_url":"https://api.github.com/users/hce/orgs","repos_url":"https://api.github.com/users/hce/repos","events_url":"https://api.github.com/users/hce/events{/privacy}","received_events_url":"https://api.github.com/users/hce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-24T11:01:58Z","updated_at":"2016-06-28T13:50:07Z","closed_at":null,"body":"Hi, I haven't tested this, but by looking at the type signature, it seems that while files are indeed written to temporary files, what is there to stop me from declaring, say 1 GB of data not as a file but as a parameter? That would still be stored in memory in a ByteString. Since parameters are also sent inside the HTTP Body when doing a file transfer, it is not possible to limit the size of the parameters inside the reverse proxy.\r\n\r\nIs there any way to limit the amount of memory the non-file parameters can take per request?"},"comment":{"url":"https://api.github.com/repos/yesodweb/wai/issues/comments/229054488","html_url":"https://github.com/yesodweb/wai/issues/560#issuecomment-229054488","issue_url":"https://api.github.com/repos/yesodweb/wai/issues/560","id":229054488,"user":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T13:50:07Z","updated_at":"2016-06-28T13:50:07Z","body":"No, and that's a good point. Interested in sending a PR to add a variant of `tempFileBackend` that allows the caller to provide an arbitrary byte limit to the size of each parameter, and/or the total bytes used by all parameters?"}}
{"actor":{"display_login":"snoyberg"}}