{"action":"created","issue":{"url":"https://api.github.com/repos/fanout/pushpin/issues/47238","labels_url":"https://api.github.com/repos/fanout/pushpin/issues/47238/labels{/name}","comments_url":"https://api.github.com/repos/fanout/pushpin/issues/47238/comments","events_url":"https://api.github.com/repos/fanout/pushpin/issues/47238/events","html_url":"https://github.com/fanout/pushpin/issues/47238","id":122203957,"number":47238,"title":"Connection reset when filesize is big","user":{"login":"eterna2","id":1248825,"avatar_url":"https://avatars.githubusercontent.com/u/1248825?v=3","gravatar_id":"","url":"https://api.github.com/users/eterna2","html_url":"https://github.com/eterna2","followers_url":"https://api.github.com/users/eterna2/followers","following_url":"https://api.github.com/users/eterna2/following{/other_user}","gists_url":"https://api.github.com/users/eterna2/gists{/gist_id}","starred_url":"https://api.github.com/users/eterna2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eterna2/subscriptions","organizations_url":"https://api.github.com/users/eterna2/orgs","repos_url":"https://api.github.com/users/eterna2/repos","events_url":"https://api.github.com/users/eterna2/events{/privacy}","received_events_url":"https://api.github.com/users/eterna2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-15T06:35:05Z","updated_at":"2015-12-15T22:18:50Z","closed_at":null,"body":"I am using hapi as api server. And testing via request.\r\n\r\ntest_request.js\r\n```\r\nfs.createReadStream('./workbooks/tmp/somefile.csv')\r\n  .pipe(\r\n    request({\r\n      method: 'POST',\r\n      url: 'https://some.domain.com/some_route',\r\n      qs: {\r\n        params: {\r\n          param_a: 'some_param'\r\n        },\r\n        email: 'some@email.com',\r\n        prj: 'someprj'\r\n      },\r\n      agentOptions: {\r\n        ca: fs.readFileSync('./ssl/cert.pem')\r\n      }      \r\n    },function(err,response,body){\r\n      if (err) console.log(err);\r\n      console.log(body);\r\n    })\r\n  )\r\n  .on('error', function(err){\r\n    console.log(err.stack);\r\n  });\r\n```\r\n\r\nhapi_route.js\r\n```\r\nmodule.exports = {\r\n  method  : \"POST\",\r\n  path    : \"/some_route\",\r\n  config: { \r\n    auth: false,\r\n    payload: {\r\n      maxBytes: 100*1024*1024,\r\n      output: 'stream'\r\n      parse: false\r\n    }\r\n  },\r\n  handler : handleRoute\r\n};\r\n```\r\n\r\nI get this error\r\n```\r\nBad Request\r\nError: write ECONNRESET\r\n    at errnoException (net.js:905:11)\r\n    at Object.afterWrite (net.js:721:19)\r\n\r\n```\r\n\r\n\r\nif I just send the content as a chunk\r\n\r\ntest_request.js\r\n```\r\nrequest({\r\n      method: 'POST',\r\n      url: 'https://some.domain.com/some_route',\r\n      qs: {\r\n        params: {\r\n          param_a: 'some_param'\r\n        },\r\n        email: 'some@email.com',\r\n        prj: 'someprj'\r\n      },\r\n      agentOptions: {\r\n        ca: fs.readFileSync('./ssl/cert.pem')\r\n      } ,\r\n     body: fs.readFileSync('somefile.csv')\r\n    },function(err,response,body){\r\n      if (err) console.log(err);\r\n      console.log(body);\r\n    })\r\n```\r\n\r\nhapi_route.js\r\n```\r\nmodule.exports = {\r\n  method  : \"POST\",\r\n  path    : \"/some_route\",\r\n  config: { \r\n    auth: false,\r\n    payload: {\r\n      maxBytes: 100*1024*1024,\r\n      parse: false\r\n    }\r\n  },\r\n  handler : handleRoute\r\n};\r\n```\r\n\r\nI get this error\r\n```\r\n{ [Error: socket hang up] code: 'ECONNRESET' }\r\n```\r\n\r\n\r\nhowever, if I try with a smaller file, everything is working fine. I can't seem to find any configuration to control the max payload size in pushpin? I assume there should be some equivalent to nginx's upload_max_filesize??"},"comment":{"url":"https://api.github.com/repos/fanout/pushpin/issues/comments/164915390","html_url":"https://github.com/fanout/pushpin/issues/47238#issuecomment-164915390","issue_url":"https://api.github.com/repos/fanout/pushpin/issues/47238","id":164915390,"user":{"login":"jkarneges","id":521953,"avatar_url":"https://avatars.githubusercontent.com/u/521953?v=3","gravatar_id":"","url":"https://api.github.com/users/jkarneges","html_url":"https://github.com/jkarneges","followers_url":"https://api.github.com/users/jkarneges/followers","following_url":"https://api.github.com/users/jkarneges/following{/other_user}","gists_url":"https://api.github.com/users/jkarneges/gists{/gist_id}","starred_url":"https://api.github.com/users/jkarneges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkarneges/subscriptions","organizations_url":"https://api.github.com/users/jkarneges/orgs","repos_url":"https://api.github.com/users/jkarneges/repos","events_url":"https://api.github.com/users/jkarneges/events{/privacy}","received_events_url":"https://api.github.com/users/jkarneges/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T22:18:50Z","updated_at":"2015-12-15T22:18:50Z","body":"And yes I should clarify, Zurl indeed had a fix for large uploads. In fact that's the only change between 1.4.9 and 1.4.10.\r\n\r\nMongrel2 had a bunch of I/O updates. Nothing specifically for large uploads, but I wondered if they were necessary. Seems not."}}