{"action":"created","issue":{"url":"https://api.github.com/repos/node-red/node-red/issues/587","labels_url":"https://api.github.com/repos/node-red/node-red/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/node-red/node-red/issues/587/comments","events_url":"https://api.github.com/repos/node-red/node-red/issues/587/events","html_url":"https://github.com/node-red/node-red/issues/587","id":60518033,"number":587,"title":"Too large msg causes the flow to stop","user":{"login":"yeudit","id":2177725,"avatar_url":"https://avatars.githubusercontent.com/u/2177725?v=3","gravatar_id":"","url":"https://api.github.com/users/yeudit","html_url":"https://github.com/yeudit","followers_url":"https://api.github.com/users/yeudit/followers","following_url":"https://api.github.com/users/yeudit/following{/other_user}","gists_url":"https://api.github.com/users/yeudit/gists{/gist_id}","starred_url":"https://api.github.com/users/yeudit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeudit/subscriptions","organizations_url":"https://api.github.com/users/yeudit/orgs","repos_url":"https://api.github.com/users/yeudit/repos","events_url":"https://api.github.com/users/yeudit/events{/privacy}","received_events_url":"https://api.github.com/users/yeudit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-10T15:30:16Z","updated_at":"2015-04-17T22:43:04Z","closed_at":"2015-03-18T22:56:53Z","body":"Hi,\r\n\r\nmy flow message contains a large object (parse result from a large xml object)\r\nand it takes long time(around 10 mins) until the message is cloned,\r\nso that the flow stopped for around 10 min.\r\n\r\nI changed the clone method to something like that:\r\nvar m = JSON.parse(JSON.stringify(msg));\r\n(https://github.com/node-red/node-red/blob/master/red/util.js#L48)\r\n\r\nand everything works much faster.\r\n\r\nis there something wrong with my fix?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/node-red/node-red/issues/comments/94090562","html_url":"https://github.com/node-red/node-red/issues/587#issuecomment-94090562","issue_url":"https://api.github.com/repos/node-red/node-red/issues/587","id":94090562,"user":{"login":"dceejay","id":5375409,"avatar_url":"https://avatars.githubusercontent.com/u/5375409?v=3","gravatar_id":"","url":"https://api.github.com/users/dceejay","html_url":"https://github.com/dceejay","followers_url":"https://api.github.com/users/dceejay/followers","following_url":"https://api.github.com/users/dceejay/following{/other_user}","gists_url":"https://api.github.com/users/dceejay/gists{/gist_id}","starred_url":"https://api.github.com/users/dceejay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dceejay/subscriptions","organizations_url":"https://api.github.com/users/dceejay/orgs","repos_url":"https://api.github.com/users/dceejay/repos","events_url":"https://api.github.com/users/dceejay/events{/privacy}","received_events_url":"https://api.github.com/users/dceejay/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T22:43:04Z","updated_at":"2015-04-17T22:43:04Z","body":"Yes - it was actually there on the in one - but no the out - now they should both be the same... but obviously not quite.... As you have the server to hit against... can you try messing with close functions (lines 92 and 145 of 18-stomp.js)\r\n\r\neg where we have\r\n            if (node.client) {\r\n                node.client.on(\"disconnect\", function() { done(); });\r\n                node.client.disconnect();\r\n            }\r\n\r\ntry  (and see when DONE!!! get printed... - immediately ? after delay?)\r\n            if (node.client) {\r\n                node.client.on(\"disconnect\", function() { console.log(\"DONE!!!\"); done(); });\r\n                node.client.disconnect();\r\n            }\r\nor (which should exit quickly - but isn't actually waiting for disconnect to finish so may cause other problems...)\r\n            if (node.client) {\r\n                node.client.disconnect();\r\n                done();\r\n            }\r\nThanks for helping."}}