{"action":"created","issue":{"url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/523","repository_url":"https://api.github.com/repos/JustinTulloss/zeromq.node","labels_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/523/comments","events_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/523/events","html_url":"https://github.com/JustinTulloss/zeromq.node/issues/523","id":151974691,"number":523,"title":"Need to explicitly call _flushReads to receive messages","user":{"login":"messa","id":115487,"avatar_url":"https://avatars.githubusercontent.com/u/115487?v=3","gravatar_id":"","url":"https://api.github.com/users/messa","html_url":"https://github.com/messa","followers_url":"https://api.github.com/users/messa/followers","following_url":"https://api.github.com/users/messa/following{/other_user}","gists_url":"https://api.github.com/users/messa/gists{/gist_id}","starred_url":"https://api.github.com/users/messa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/messa/subscriptions","organizations_url":"https://api.github.com/users/messa/orgs","repos_url":"https://api.github.com/users/messa/repos","events_url":"https://api.github.com/users/messa/events{/privacy}","received_events_url":"https://api.github.com/users/messa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-29T21:42:34Z","updated_at":"2016-05-03T16:43:16Z","closed_at":null,"body":"I have found that sometimes the messages are received by `socket.on('message', callback)` only after I explicitly call `socket._flushReads()`. It looks like this problem occurs when two or more messages are sent quickly on that socket before.\r\n\r\nI have made a (minimal) demonstration of this problem: https://gist.github.com/messa/862638ab44ca65f712fe4d6ef79aeb67\r\n\r\nThis problem appears also sometimes in our node app suddenly after other messages (responses) were received successfully before so it is apparently not caused by socket possibly still initializing or not being connected yet or similar."},"comment":{"url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/comments/216590130","html_url":"https://github.com/JustinTulloss/zeromq.node/issues/523#issuecomment-216590130","issue_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/523","id":216590130,"user":{"login":"quinndiggity","id":10092236,"avatar_url":"https://avatars.githubusercontent.com/u/10092236?v=3","gravatar_id":"","url":"https://api.github.com/users/quinndiggity","html_url":"https://github.com/quinndiggity","followers_url":"https://api.github.com/users/quinndiggity/followers","following_url":"https://api.github.com/users/quinndiggity/following{/other_user}","gists_url":"https://api.github.com/users/quinndiggity/gists{/gist_id}","starred_url":"https://api.github.com/users/quinndiggity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quinndiggity/subscriptions","organizations_url":"https://api.github.com/users/quinndiggity/orgs","repos_url":"https://api.github.com/users/quinndiggity/repos","events_url":"https://api.github.com/users/quinndiggity/events{/privacy}","received_events_url":"https://api.github.com/users/quinndiggity/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T16:43:16Z","updated_at":"2016-05-03T16:43:16Z","body":"+1\r\n\r\nSame here, 2.15.0 is completely unusable for us, reverted and pinned 2.14.0"}}