{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-amqp1.0/issues/6","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-amqp1.0/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-amqp1.0/issues/6/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-amqp1.0/issues/6/events","html_url":"https://github.com/rabbitmq/rabbitmq-amqp1.0/issues/6","id":62197133,"number":6,"title":"heartbeat frames seem to cause connection failure","user":{"login":"mbroadst","id":312966,"avatar_url":"https://avatars.githubusercontent.com/u/312966?v=3","gravatar_id":"","url":"https://api.github.com/users/mbroadst","html_url":"https://github.com/mbroadst","followers_url":"https://api.github.com/users/mbroadst/followers","following_url":"https://api.github.com/users/mbroadst/following{/other_user}","gists_url":"https://api.github.com/users/mbroadst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbroadst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbroadst/subscriptions","organizations_url":"https://api.github.com/users/mbroadst/orgs","repos_url":"https://api.github.com/users/mbroadst/repos","events_url":"https://api.github.com/users/mbroadst/events{/privacy}","received_events_url":"https://api.github.com/users/mbroadst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-16T20:15:11Z","updated_at":"2015-03-20T18:43:52Z","closed_at":null,"body":"I'm working on a [node amqp client](https://github.com/noodlefrenzy/node-amqp-1-0) and trying to run integration tests against rabbitmq, but it seems every time the internal heartbeat timer sends an empty (heartbeat) message rabbitmq immediately closes the connection, resulting in a local ECONNRESET. \r\n\r\nSection 2.4.5 of the [spec](http://docs.oasis-open.org/amqp/core/v1.0/amqp-core-complete-v1.0.pdf) indicates that \"Implementations MUST be prepared to handle empty frames arriving on any valid channel..\" so this seems like a bug to me if that is indeed what is happening. To that end, I have no idea if that's actually what's happening because there isn't any trace information in the local rabbitmq log. Perhaps you could direct me as to how I might get more information?"},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-amqp1.0/issues/comments/84097730","html_url":"https://github.com/rabbitmq/rabbitmq-amqp1.0/issues/6#issuecomment-84097730","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-amqp1.0/issues/6","id":84097730,"user":{"login":"mbroadst","id":312966,"avatar_url":"https://avatars.githubusercontent.com/u/312966?v=3","gravatar_id":"","url":"https://api.github.com/users/mbroadst","html_url":"https://github.com/mbroadst","followers_url":"https://api.github.com/users/mbroadst/followers","following_url":"https://api.github.com/users/mbroadst/following{/other_user}","gists_url":"https://api.github.com/users/mbroadst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbroadst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbroadst/subscriptions","organizations_url":"https://api.github.com/users/mbroadst/orgs","repos_url":"https://api.github.com/users/mbroadst/repos","events_url":"https://api.github.com/users/mbroadst/events{/privacy}","received_events_url":"https://api.github.com/users/mbroadst/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T18:43:51Z","updated_at":"2015-03-20T18:43:51Z","body":"@simonmacmullen thanks for the reply, so the raw hex being sent over the wire to cause this bug is \"0000000802000000\" if that helps with some sort of internal rabbit test. As for setting up a simple test, you can follow these steps:\r\n\r\n   * git checkout https://github.com/mbroadst/rabbitmq-node-error\r\n   * cd rabbitmq-node-error && npm install \r\n   * DEBUG=amqp* node ./test.js <ip address of your rabbitmq server>\r\n\r\nAt this point (if things are configured properly and the rabbitmq server is reachable) a whole bunch of debug data will be spewed out at you, and \"connected\" will show up at the bottom. After a short period of time you'll see a message indicating that it sent the heartbeat, and the corresponding ECONNRESET socket error\r\n"}}