{"action":"created","issue":{"url":"https://api.github.com/repos/uWebSockets/uWebSockets/issues/273","repository_url":"https://api.github.com/repos/uWebSockets/uWebSockets","labels_url":"https://api.github.com/repos/uWebSockets/uWebSockets/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/uWebSockets/uWebSockets/issues/273/comments","events_url":"https://api.github.com/repos/uWebSockets/uWebSockets/issues/273/events","html_url":"https://github.com/uWebSockets/uWebSockets/issues/273","id":181345935,"number":273,"title":"socket.io segfault or \"Registering more than one listener...\" on 0.10.*","user":{"login":"ga2mer","id":1492335,"avatar_url":"https://avatars.githubusercontent.com/u/1492335?v=3","gravatar_id":"","url":"https://api.github.com/users/ga2mer","html_url":"https://github.com/ga2mer","followers_url":"https://api.github.com/users/ga2mer/followers","following_url":"https://api.github.com/users/ga2mer/following{/other_user}","gists_url":"https://api.github.com/users/ga2mer/gists{/gist_id}","starred_url":"https://api.github.com/users/ga2mer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga2mer/subscriptions","organizations_url":"https://api.github.com/users/ga2mer/orgs","repos_url":"https://api.github.com/users/ga2mer/repos","events_url":"https://api.github.com/users/ga2mer/events{/privacy}","received_events_url":"https://api.github.com/users/ga2mer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/uWebSockets/uWebSockets/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/uWebSockets/uWebSockets/labels/js","name":"js","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T07:48:48Z","updated_at":"2016-10-07T14:03:15Z","closed_at":null,"body":"socket.io or engine.io doesn't working with uws@0.10\r\n\r\nFrom uws@0.10.0 to uws@0.10.2 with example from Readme, throwing \"Error: Registering more than one listener to a WebSocket is not supported.\" and from uws@0.10.3 to uws@0.10.4 throwing segfault\r\n\r\nOn 0.9.0 all fine.\r\n\r\nSmall example for reproduce: \r\n```js\r\nvar io = require('socket.io')(3001);\r\nio.engine.ws = new(require('uws').Server)({noServer: true, perMessageDeflate: false});\r\nvar server = require(\"http\").createServer((req, res) => {\r\n    res.end(`\r\n    <html>\r\n    <head></head>\r\n    <body>\r\n      <script src=\"https://cdn.socket.io/socket.io-1.4.5.js\"></script>\r\n      <script>\r\n        io('http://localhost:3001').connect();\r\n      </script>\r\n    </body>\r\n  </html>`);\r\n});\r\n\r\nserver.listen(3000);\r\n```\r\nOS: ArchLinux x64 4.7.6-1-ck\r\nNode: 6.7.0\r\n\r\nvalgrind log\r\n```\r\n==26658== Use of uninitialised value of size 8\r\n==26658==    at 0x9CDF360: sendCallback(void*, void*, bool) (in /home/ga2mer/git/uwstest/node_modules/uws/uws_linux_48.node)\r\n==26658==    by 0x9CE48EB: void send<true>(v8::FunctionCallbackInfo<v8::Value> const&) (in /home/ga2mer/git/uwstest/node_modules/uws/uws_linux_48.node)\r\n==26658==    by 0x988A71: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) (in /usr/local/bin/node)\r\n==26658==    by 0x9E6A21: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>) (in /usr/local/bin/node)\r\n==26658==    by 0x9E709D: v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) (in /usr/local/bin/node)\r\n```"},"comment":{"url":"https://api.github.com/repos/uWebSockets/uWebSockets/issues/comments/252260535","html_url":"https://github.com/uWebSockets/uWebSockets/issues/273#issuecomment-252260535","issue_url":"https://api.github.com/repos/uWebSockets/uWebSockets/issues/273","id":252260535,"user":{"login":"alexhultman","id":3397140,"avatar_url":"https://avatars.githubusercontent.com/u/3397140?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhultman","html_url":"https://github.com/alexhultman","followers_url":"https://api.github.com/users/alexhultman/followers","following_url":"https://api.github.com/users/alexhultman/following{/other_user}","gists_url":"https://api.github.com/users/alexhultman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhultman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhultman/subscriptions","organizations_url":"https://api.github.com/users/alexhultman/orgs","repos_url":"https://api.github.com/users/alexhultman/repos","events_url":"https://api.github.com/users/alexhultman/events{/privacy}","received_events_url":"https://api.github.com/users/alexhultman/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T14:03:14Z","updated_at":"2016-10-07T14:03:14Z","body":"Yep, the Node.js addon is kind of broken in 0.10. It also fails when running in the Primus tests. Nodesters should probably use 0.9.0 until I get this fixed up."}}
{"actor":{"display_login":"alexhultman"}}