{"action":"created","issue":{"url":"https://api.github.com/repos/Shizmob/pydle/issues/51","repository_url":"https://api.github.com/repos/Shizmob/pydle","labels_url":"https://api.github.com/repos/Shizmob/pydle/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/Shizmob/pydle/issues/51/comments","events_url":"https://api.github.com/repos/Shizmob/pydle/issues/51/events","html_url":"https://github.com/Shizmob/pydle/issues/51","id":184082501,"number":51,"title":"Memory Leak","user":{"login":"Harmon758","id":9403740,"avatar_url":"https://avatars.githubusercontent.com/u/9403740?v=3","gravatar_id":"","url":"https://api.github.com/users/Harmon758","html_url":"https://github.com/Harmon758","followers_url":"https://api.github.com/users/Harmon758/followers","following_url":"https://api.github.com/users/Harmon758/following{/other_user}","gists_url":"https://api.github.com/users/Harmon758/gists{/gist_id}","starred_url":"https://api.github.com/users/Harmon758/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harmon758/subscriptions","organizations_url":"https://api.github.com/users/Harmon758/orgs","repos_url":"https://api.github.com/users/Harmon758/repos","events_url":"https://api.github.com/users/Harmon758/events{/privacy}","received_events_url":"https://api.github.com/users/Harmon758/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-19T21:45:36Z","updated_at":"2016-10-20T03:19:00Z","closed_at":null,"body":"I'm using client.run in the asyncio branch, and after a short period of being connected, I'm encountering:\r\n```\r\nEncountered error on socket.\r\nTimeoutError: Ping timeout: no data received from server in 180 seconds.\r\nUnexpected disconnect. Attempting to reconnect.\r\n```\r\nafter which the memory for the process jumps from ~15 MB to ~2 GB.\r\nThis seems to be because on_data is triggered constantly with empty bytestrings. It's possible this is a result of handle_forever continuing after the connection is disconnected.\r\nI'm not sure what's causing the initial ping timeout though. I'm using a program that was running properly with the master branch, and just converted it by adding async's and await's to overrides and calls of functions that were converted into coroutines and by using client.run instead of client.connect and client.handle_forever"},"comment":{"url":"https://api.github.com/repos/Shizmob/pydle/issues/comments/254999023","html_url":"https://github.com/Shizmob/pydle/issues/51#issuecomment-254999023","issue_url":"https://api.github.com/repos/Shizmob/pydle/issues/51","id":254999023,"user":{"login":"Shizmob","id":763230,"avatar_url":"https://avatars.githubusercontent.com/u/763230?v=3","gravatar_id":"","url":"https://api.github.com/users/Shizmob","html_url":"https://github.com/Shizmob","followers_url":"https://api.github.com/users/Shizmob/followers","following_url":"https://api.github.com/users/Shizmob/following{/other_user}","gists_url":"https://api.github.com/users/Shizmob/gists{/gist_id}","starred_url":"https://api.github.com/users/Shizmob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shizmob/subscriptions","organizations_url":"https://api.github.com/users/Shizmob/orgs","repos_url":"https://api.github.com/users/Shizmob/repos","events_url":"https://api.github.com/users/Shizmob/events{/privacy}","received_events_url":"https://api.github.com/users/Shizmob/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T03:19:00Z","updated_at":"2016-10-20T03:19:00Z","body":"I can reproduce the failure to reconnect issue here as well, so I'll look into it later.\r\n\r\nI've pushed a commit that moves the `PING_TIMEOUT` variable inside of `pydle.Client`, so you can simply override it in your client subclass now. Thanks for using pydle!"}}
{"actor":{"display_login":"Shizmob"}}