{"action":"created","issue":{"url":"https://api.github.com/repos/websockets/ws/issues/628","labels_url":"https://api.github.com/repos/websockets/ws/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/websockets/ws/issues/628/comments","events_url":"https://api.github.com/repos/websockets/ws/issues/628/events","html_url":"https://github.com/websockets/ws/issues/628","id":120540187,"number":628,"title":"Uncaught \"zlib binding closed\" errors","user":{"login":"DanReyLop","id":1715800,"avatar_url":"https://avatars.githubusercontent.com/u/1715800?v=3","gravatar_id":"","url":"https://api.github.com/users/DanReyLop","html_url":"https://github.com/DanReyLop","followers_url":"https://api.github.com/users/DanReyLop/followers","following_url":"https://api.github.com/users/DanReyLop/following{/other_user}","gists_url":"https://api.github.com/users/DanReyLop/gists{/gist_id}","starred_url":"https://api.github.com/users/DanReyLop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanReyLop/subscriptions","organizations_url":"https://api.github.com/users/DanReyLop/orgs","repos_url":"https://api.github.com/users/DanReyLop/repos","events_url":"https://api.github.com/users/DanReyLop/events{/privacy}","received_events_url":"https://api.github.com/users/DanReyLop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-05T08:24:12Z","updated_at":"2015-12-16T17:27:17Z","closed_at":null,"body":"I'm setting up a simple WebSockets server, and this error (apparently randomly) happened:\r\n\r\n```\r\nError: zlib binding closed\r\n    at DeflateRaw.Zlib._transform (zlib.js:485:15)\r\n    at DeflateRaw.Transform._read (_stream_transform.js:167:10)\r\n    at DeflateRaw.Transform._write (_stream_transform.js:155:12)\r\n    at doWrite (_stream_writable.js:292:12)\r\n    at clearBuffer (_stream_writable.js:396:7)\r\n    at onwrite (_stream_writable.js:331:7)\r\n    at WritableState.onwrite (_stream_writable.js:89:5)\r\n    at afterTransform (_stream_transform.js:79:5)\r\n    at TransformState.afterTransform (_stream_transform.js:54:12)\r\n    at Zlib.callback (zlib.js:614:5)\r\n```\r\n\r\nIt happened in a moment where the client was connecting and disconnecting continuously, so maybe it's caused by a race condition when the connection is closed abruptly. I wasn't able to reproduce it again. I had the PerMessageDeflate extension enabled (the WS server was configured as default).\r\n\r\nIt looks like it's the same issue as this: https://github.com/faye/permessage-deflate-node/issues/1\r\n\r\nEdit: I forgot, I'm using version 0.8.1 of ws."},"comment":{"url":"https://api.github.com/repos/websockets/ws/issues/comments/165184407","html_url":"https://github.com/websockets/ws/issues/628#issuecomment-165184407","issue_url":"https://api.github.com/repos/websockets/ws/issues/628","id":165184407,"user":{"login":"SEAPUNK","id":4400726,"avatar_url":"https://avatars.githubusercontent.com/u/4400726?v=3","gravatar_id":"","url":"https://api.github.com/users/SEAPUNK","html_url":"https://github.com/SEAPUNK","followers_url":"https://api.github.com/users/SEAPUNK/followers","following_url":"https://api.github.com/users/SEAPUNK/following{/other_user}","gists_url":"https://api.github.com/users/SEAPUNK/gists{/gist_id}","starred_url":"https://api.github.com/users/SEAPUNK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SEAPUNK/subscriptions","organizations_url":"https://api.github.com/users/SEAPUNK/orgs","repos_url":"https://api.github.com/users/SEAPUNK/repos","events_url":"https://api.github.com/users/SEAPUNK/events{/privacy}","received_events_url":"https://api.github.com/users/SEAPUNK/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T17:27:17Z","updated_at":"2015-12-16T17:27:17Z","body":"@rauchg The assertion that crashes the process."}}