{"action":"opened","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/1562","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/1562/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/1562/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/1562/events","html_url":"https://github.com/strongloop/loopback/issues/1562","id":99081306,"number":1562,"title":"Are there some differences between the following 2 ways to define remote methods?","user":{"login":"yorkie","id":1935767,"avatar_url":"https://avatars.githubusercontent.com/u/1935767?v=3","gravatar_id":"","url":"https://api.github.com/users/yorkie","html_url":"https://github.com/yorkie","followers_url":"https://api.github.com/users/yorkie/followers","following_url":"https://api.github.com/users/yorkie/following{/other_user}","gists_url":"https://api.github.com/users/yorkie/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkie/subscriptions","organizations_url":"https://api.github.com/users/yorkie/orgs","repos_url":"https://api.github.com/users/yorkie/repos","events_url":"https://api.github.com/users/yorkie/events{/privacy}","received_events_url":"https://api.github.com/users/yorkie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T23:09:00Z","updated_at":"2015-08-04T23:09:00Z","closed_at":null,"body":"Hey I found a big performance issue, I defined the accepts some of remote methods in the following way:\r\n\r\n```js\r\n{\r\n  type: 'object',\r\n  http: function (ctx) { return ctx.req; }\r\n}\r\n```\r\n\r\nAnd when the server is up and I make some parallel requests to this remote port, only parts of requests can get reached and completed, and seriously all the later request are timeout. I have addressed this by exporting sub fields(`headers`, `status` and etc.) of `req` and `res`(yes, res has the same issue in this case).\r\n\r\nI guess we at first need to notify user don't make remote definition like this, then find the reason and fix it in the end. Or this is a known issue?\r\n\r\n/cc @raymondfeng (Ah I don't know who i should catch with this and think this is really serious in production)."}}