{"issue":{"title":"Error with file upload on slow network","user":{"login":"cloudhead","id":40774,"url":"https://api.github.com/users/cloudhead","avatar_url":"https://secure.gravatar.com/avatar/38ddcefff0db3bd04a6fc06e31d1c01d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"38ddcefff0db3bd04a6fc06e31d1c01d"},"created_at":"2011-12-26T18:58:24Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-27T17:07:25Z","id":2659447,"closed_at":null,"html_url":"https://github.com/ostinelli/misultin/issues/89","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"I'm testing the file upload functionality with an intentionally crippled network, and getting some timeouts after long file uploads (> 1 min). Here's the setup:\r\n\r\nCap network bandwidth to 600Kbit/s and add 50ms latency:\r\n\r\n```shell\r\n sudo ipfw pipe 1 config bw 600Kbit/s delay 50ms\r\n   \r\n sudo ipfw add 1 pipe 1 src-port 8080\r\n sudo ipfw add 2 pipe 1 dst-port 8080\r\n```\r\n\r\nHere's the error I get after about 1.5 minutes of a 900K file:\r\n\r\n```plain\r\n18:46:41.773 [error]    module: misultin_http\r\n        line: 392\r\nerror reading body: timeout\r\n\r\n18:46:41.777 [error]    module: misultin_http\r\n        line: 363\r\nrequest timeout, sending error\r\n```\r\n\r\nMisultin version is `0.9-dev` (current master I think)\r\n\r\nAny ideas why it's timing out? I'm tracking the file progress, and it seems like it's being uploaded...\r\n\r\nNote: everything seems to work fine without the artificial network delay, and everything but file uploads work fine *with* the delay. I'm just worried this could happen when the site is live.","number":89,"url":"https://api.github.com/repos/ostinelli/misultin/issues/89","comments":7,"assignee":null},"comment":{"user":{"login":"cloudhead","id":40774,"url":"https://api.github.com/users/cloudhead","avatar_url":"https://secure.gravatar.com/avatar/38ddcefff0db3bd04a6fc06e31d1c01d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"38ddcefff0db3bd04a6fc06e31d1c01d"},"created_at":"2011-12-27T17:07:25Z","updated_at":"2011-12-27T17:07:25Z","id":3283097,"body":"Very interesting indeed, it seems like with that fine-grained control, there can be a solution! I'll be awaiting your patch.\r\n\r\nAbout the chunked-encoding, the thing is I don't think it is possible to force it from the browser.","url":"https://api.github.com/repos/ostinelli/misultin/issues/comments/3283097"},"action":"created"}