{"action":"created","issue":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/917","labels_url":"https://api.github.com/repos/ninenines/cowboy/issues/917/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/cowboy/issues/917/comments","events_url":"https://api.github.com/repos/ninenines/cowboy/issues/917/events","html_url":"https://github.com/ninenines/cowboy/issues/917","id":119077034,"number":917,"title":"Websocket terminated with badmatch error when sending flood of messages","user":{"login":"oriondean","id":3110057,"avatar_url":"https://avatars.githubusercontent.com/u/3110057?v=3","gravatar_id":"","url":"https://api.github.com/users/oriondean","html_url":"https://github.com/oriondean","followers_url":"https://api.github.com/users/oriondean/followers","following_url":"https://api.github.com/users/oriondean/following{/other_user}","gists_url":"https://api.github.com/users/oriondean/gists{/gist_id}","starred_url":"https://api.github.com/users/oriondean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriondean/subscriptions","organizations_url":"https://api.github.com/users/oriondean/orgs","repos_url":"https://api.github.com/users/oriondean/repos","events_url":"https://api.github.com/users/oriondean/events{/privacy}","received_events_url":"https://api.github.com/users/oriondean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T16:43:05Z","updated_at":"2015-11-26T16:44:42Z","closed_at":null,"body":"I'm connecting to a RabbitMQ server through the web-stomp plugin with a websocket. I believe RabbitMQ uses a cowboy server to power the STOMP protocol it uses.\r\n\r\nWhen I send a flood of messages through this websocket, the connection is closed before it finishes sending all messages.\r\n\r\nLooking at the logs, I see the following error:\r\n```\r\n {{badmatch,<<1,254,1,58,18,163,127,205,65,230,49,137,24,199,\r\n                              26,190,102,202,17,172,102,202,16,163,40,140,30,\r\n                              160,99,140,14,184,119,214,26,226,116,207,16,162,\r\n                              118,169,28,162,124,215,26,163,102,142,19,168,\r\n                              124,196,11,165,40,144,71,248,24,169,63,141,82,\r\n                              227,63,141,82,227,63,141,82,227,63,141,82,227,\r\n                              63,141,82,227,63,141,82,227,63,141,82,227,63,\r\n                              141,82,227,63,141,82,227,63,141,82,227,63,141,\r\n                              82,227,63,141,82,227,63,141,82,227,63,141,82,\r\n                              227,63,141,82,227,63,141,82,227,63,141,82,227,\r\n                              63,141,82,227,63,141,82,227,63,141,82,227,63,\r\n                              141,82,227,63,141,82,227,63,141,82,227,63,141,\r\n                              82,227,63,141,82,227,63,141,82,227,63,141,82,\r\n                              227,63,141,82,227,63,141,82,227,63,141,82,227,\r\n                              63,141,82,227,63,141,82,227,63,141,82,227,63,\r\n                              141,82,227,63,141,82,227,63,141,82,227,63,141,\r\n                              82,227,63,141,82,227,63,141,82,227,63,141,82,\r\n                              227,63,141,82,227,63,141,82,227,63,141,82,227,\r\n                              63,141,82,227,63,141,82,227,63,141,82,227,63,\r\n                              141,82,227,63,141,82,227,63,141,82,227,63,141,\r\n                              82,227,63,141,82,227,63,141,82,227,63,141,82,\r\n                              227,63,141,82,227,63,141,82,227,63,141,82,227,\r\n                              63,141,82,227,63,141,82,227,63,141,82,227,63,\r\n                              141,82,227,63,141,82,227,63,141,82,227,63,141,\r\n                              82,227,63,141,82,227,63,141,82,227>>},\r\n                  [{cowboy_http_websocket,websocket_data,4,[]},\r\n                   {cowboy_http_protocol,upgrade_protocol,3,[]}]}\r\n```\r\n\r\nThis only seems to happen when sending the messages in Chrome. For some reason, Firefox and IE don't seem to cause the websocket to be closed.\r\n\r\nAny ideas on what could be the cause behind this? Let me know if you need any more information"},"comment":{"url":"https://api.github.com/repos/ninenines/cowboy/issues/comments/159957439","html_url":"https://github.com/ninenines/cowboy/issues/917#issuecomment-159957439","issue_url":"https://api.github.com/repos/ninenines/cowboy/issues/917","id":159957439,"user":{"login":"essen","id":141739,"avatar_url":"https://avatars.githubusercontent.com/u/141739?v=3","gravatar_id":"","url":"https://api.github.com/users/essen","html_url":"https://github.com/essen","followers_url":"https://api.github.com/users/essen/followers","following_url":"https://api.github.com/users/essen/following{/other_user}","gists_url":"https://api.github.com/users/essen/gists{/gist_id}","starred_url":"https://api.github.com/users/essen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/essen/subscriptions","organizations_url":"https://api.github.com/users/essen/orgs","repos_url":"https://api.github.com/users/essen/repos","events_url":"https://api.github.com/users/essen/events{/privacy}","received_events_url":"https://api.github.com/users/essen/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T16:44:42Z","updated_at":"2015-11-26T16:44:42Z","body":"RabbitMQ stable uses a very old version of Cowboy. Can you try with RabbitMQ master? I updated Cowboy there. The issue is probably long gone."}}