{"action":"created","issue":{"url":"https://api.github.com/repos/websockets/ws/issues/633","labels_url":"https://api.github.com/repos/websockets/ws/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/websockets/ws/issues/633/comments","events_url":"https://api.github.com/repos/websockets/ws/issues/633/events","html_url":"https://github.com/websockets/ws/issues/633","id":122467226,"number":633,"title":"node_zlib.cc: Assertion '(false) == (ctx->pending_close_ && \"close is pending\")' failed","user":{"login":"jancurn","id":10612996,"avatar_url":"https://avatars.githubusercontent.com/u/10612996?v=3","gravatar_id":"","url":"https://api.github.com/users/jancurn","html_url":"https://github.com/jancurn","followers_url":"https://api.github.com/users/jancurn/followers","following_url":"https://api.github.com/users/jancurn/following{/other_user}","gists_url":"https://api.github.com/users/jancurn/gists{/gist_id}","starred_url":"https://api.github.com/users/jancurn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jancurn/subscriptions","organizations_url":"https://api.github.com/users/jancurn/orgs","repos_url":"https://api.github.com/users/jancurn/repos","events_url":"https://api.github.com/users/jancurn/events{/privacy}","received_events_url":"https://api.github.com/users/jancurn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-16T09:55:54Z","updated_at":"2015-12-30T22:10:21Z","closed_at":null,"body":"I received this assertion failure when working with the ws package (the node.js process crashed right after that):\r\n\r\n`node: ../src/node_zlib.cc:124: static void node::ZCtx::Write(const v8::FunctionCallbackInfo<v8::Value>&) [with bool async = true]: Assertion '(false) == (ctx->pending_close_ && \"close is pending\")' failed. `\r\n\r\nA simplified code that I was using:\r\n```javascript\r\n// ws is a WebSocket object for an accepted connection (i.e. this is a server)\r\nws.on('close', function (code) {\r\n    // this guy gets called too\r\n});\r\nws.send(myLongMessage, function ack(err) {\r\n    if( err )\r\n        ws.close(1003);\r\n});\r\n```\r\n\r\nIMHO WebSocket should check that `_deflate` stream is not closed in `PerMessageDeflate.js`.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/websockets/ws/issues/comments/168082101","html_url":"https://github.com/websockets/ws/issues/633#issuecomment-168082101","issue_url":"https://api.github.com/repos/websockets/ws/issues/633","id":168082101,"user":{"login":"3rd-Eden","id":28071,"avatar_url":"https://avatars.githubusercontent.com/u/28071?v=3","gravatar_id":"","url":"https://api.github.com/users/3rd-Eden","html_url":"https://github.com/3rd-Eden","followers_url":"https://api.github.com/users/3rd-Eden/followers","following_url":"https://api.github.com/users/3rd-Eden/following{/other_user}","gists_url":"https://api.github.com/users/3rd-Eden/gists{/gist_id}","starred_url":"https://api.github.com/users/3rd-Eden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3rd-Eden/subscriptions","organizations_url":"https://api.github.com/users/3rd-Eden/orgs","repos_url":"https://api.github.com/users/3rd-Eden/repos","events_url":"https://api.github.com/users/3rd-Eden/events{/privacy}","received_events_url":"https://api.github.com/users/3rd-Eden/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T22:10:21Z","updated_at":"2015-12-30T22:10:21Z","body":"Is this still an issue in the latest release?"}}