{"issue":{"title":"Big file upload triggers crash","user":{"login":"kristofferkoch","id":130745,"url":"https://api.github.com/users/kristofferkoch","avatar_url":"https://secure.gravatar.com/avatar/99268f64cf674b41e2a324a020a16818?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"99268f64cf674b41e2a324a020a16818"},"created_at":"2011-12-27T16:12:08Z","milestone":null,"state":"open","updated_at":"2011-12-27T21:33:28Z","labels":[],"id":2664241,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/klacke/yaws/issues/75","body":"When uploading a 2GB file, yaws crashes with the following message:\r\n\r\n    =ERROR REPORT==== 27-Dec-2011::17:04:42 ===\r\n    Yaws process died: {{badmatch,{error,einval}},\r\n                        [{yaws,setopts,3},\r\n                         {yaws,http_recv_request,2},\r\n                         {yaws,do_http_get_headers,2},\r\n                         {yaws,http_get_headers,2},\r\n                         {yaws_server,aloop,3},\r\n                         {yaws_server,acceptor0,2},\r\n                         {proc_lib,init_p_do_apply,3}]}\r\n\r\nThe uploaded file is created with `dd if=/dev/zero of=/tmp/bigfile bs=1M count=2048`. Running yaws 1.91-2 on ubuntu.\r\n\r\nFurthermore, I don't seem to receive any `{part_body, Data}` tuples, only one humongous `{body, Data}` when handling more sane file sizes.","number":75,"url":"https://api.github.com/repos/klacke/yaws/issues/75","comments":5,"assignee":null},"comment":{"user":{"login":"vinoski","id":57131,"url":"https://api.github.com/users/vinoski","avatar_url":"https://secure.gravatar.com/avatar/0c1bdfc9f659a18f39e8d2f81329e241?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0c1bdfc9f659a18f39e8d2f81329e241"},"created_at":"2011-12-27T21:33:28Z","updated_at":"2011-12-27T21:33:28Z","id":3285451,"body":"I copied the code exactly from your gist and ran it successfully with both Erlang R14B04 and R15B under the latest yaws from github (basically the same as 1.92).\r\n\r\nClient output: https://gist.github.com/1525210\r\n\r\nServer output: https://gist.github.com/1525225\r\n\r\nEverything worked exactly as expected and desired. This was on OS X Lion.","url":"https://api.github.com/repos/klacke/yaws/issues/comments/3285451"},"action":"created"}