{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/express/issues/3450","repository_url":"https://api.github.com/repos/expressjs/express","labels_url":"https://api.github.com/repos/expressjs/express/issues/3450/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/express/issues/3450/comments","events_url":"https://api.github.com/repos/expressjs/express/issues/3450/events","html_url":"https://github.com/expressjs/express/issues/3450","id":265047725,"number":3450,"title":"Dispatch takes too much time","user":{"login":"niyazpk","id":307424,"avatar_url":"https://avatars1.githubusercontent.com/u/307424?v=4","gravatar_id":"","url":"https://api.github.com/users/niyazpk","html_url":"https://github.com/niyazpk","followers_url":"https://api.github.com/users/niyazpk/followers","following_url":"https://api.github.com/users/niyazpk/following{/other_user}","gists_url":"https://api.github.com/users/niyazpk/gists{/gist_id}","starred_url":"https://api.github.com/users/niyazpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niyazpk/subscriptions","organizations_url":"https://api.github.com/users/niyazpk/orgs","repos_url":"https://api.github.com/users/niyazpk/repos","events_url":"https://api.github.com/users/niyazpk/events{/privacy}","received_events_url":"https://api.github.com/users/niyazpk/received_events","type":"User","site_admin":false},"labels":[{"id":553390819,"url":"https://api.github.com/repos/expressjs/express/labels/awaiting%20more%20info","name":"awaiting more info","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-12T18:51:51Z","updated_at":"2018-03-19T00:47:40Z","closed_at":"2018-03-19T00:47:40Z","author_association":"NONE","body":"**Context:**\r\n```\r\n  express: ~4.15.2\r\n  node: v8.4.0\r\n  MacOSX\r\n```\r\n\r\nRunning in my laptop, so there is no other traffic to the page. I have a POST request which posts some data to a URL. The data is a json string which is around 1kb.\r\n\r\n**Problem:**\r\nAround 10% of my calls (for the exact same data) takes a lot of time to return anything. Looking at the express logs, it looks like express is taking a lot of time (like minutes) to dispatch the POST request.\r\n\r\n```\r\nPOST /save-image-data 200 1.534 ms - 876\r\n  express:router dispatching POST /save-image-data +6m\r\n  express:router query  : /save-image-data +0ms\r\n  express:router expressInit  : /save-image-data +0ms\r\n  express:router logger  : /save-image-data +0ms\r\n  express:router jsonParser  : /save-image-data +0ms\r\n  express:router urlencodedParser  : /save-image-data +1ms\r\n  express:router cookieParser  : /save-image-data +0ms\r\n  express:router serveStatic  : /save-image-data +0ms\r\n  express:router router  : /save-image-data +0ms\r\n  express:router dispatching POST /save-image-data +0ms\r\n```\r\n\r\nI saw a previous issue https://github.com/expressjs/express/issues/2401 , but it was closed due to not enough information."},"comment":{"url":"https://api.github.com/repos/expressjs/express/issues/comments/374072180","html_url":"https://github.com/expressjs/express/issues/3450#issuecomment-374072180","issue_url":"https://api.github.com/repos/expressjs/express/issues/3450","id":374072180,"user":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars3.githubusercontent.com/u/67512?v=4","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T00:47:40Z","updated_at":"2018-03-19T00:47:40Z","author_association":"OWNER","body":"Closing since I never heard back."}}
{"actor":{"display_login":"dougwilson"}}