{"action":"created","issue":{"url":"https://api.github.com/repos/JKorf/Bitfinex.Net/issues/25","repository_url":"https://api.github.com/repos/JKorf/Bitfinex.Net","labels_url":"https://api.github.com/repos/JKorf/Bitfinex.Net/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/JKorf/Bitfinex.Net/issues/25/comments","events_url":"https://api.github.com/repos/JKorf/Bitfinex.Net/issues/25/events","html_url":"https://github.com/JKorf/Bitfinex.Net/issues/25","id":330283292,"node_id":"MDU6SXNzdWUzMzAyODMyOTI=","number":25,"title":"Bitfinex Disconnections-Reconnections","user":{"login":"ciottied","id":4824038,"node_id":"MDQ6VXNlcjQ4MjQwMzg=","avatar_url":"https://avatars2.githubusercontent.com/u/4824038?v=4","gravatar_id":"","url":"https://api.github.com/users/ciottied","html_url":"https://github.com/ciottied","followers_url":"https://api.github.com/users/ciottied/followers","following_url":"https://api.github.com/users/ciottied/following{/other_user}","gists_url":"https://api.github.com/users/ciottied/gists{/gist_id}","starred_url":"https://api.github.com/users/ciottied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciottied/subscriptions","organizations_url":"https://api.github.com/users/ciottied/orgs","repos_url":"https://api.github.com/users/ciottied/repos","events_url":"https://api.github.com/users/ciottied/events{/privacy}","received_events_url":"https://api.github.com/users/ciottied/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-07T13:54:27Z","updated_at":"2018-06-20T15:44:16Z","closed_at":null,"author_association":"NONE","body":"Bitfinex.NET connects and reconnects to Bitfinex at least once per day, sometime many times a day.\r\nI get it because I log the events `BitfinexSocketClient.ConnectionLost and BitfinexSocketClient.ConnectionRestored`.\r\n\r\nSometimes Bitfinex.NET reconnects but the candle subscription (opened at startup with `BitfinexSocketClient.SubscribeToCandleUpdates` ) is not restored.\r\n\r\nI thought about a timer to detect  if data is still arriving and,  if not, close-reopen connection from scratch.\r\nIs there a better way to deal with the issue ?\r\n\r\nP.S.: my machine is in a datacenter with 99.9 connectivity SLA, so connections/reconnections are probably originated from Bitfinex endpoint  and inherent to their service."},"comment":{"url":"https://api.github.com/repos/JKorf/Bitfinex.Net/issues/comments/398798269","html_url":"https://github.com/JKorf/Bitfinex.Net/issues/25#issuecomment-398798269","issue_url":"https://api.github.com/repos/JKorf/Bitfinex.Net/issues/25","id":398798269,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODc5ODI2OQ==","user":{"login":"ciottied","id":4824038,"node_id":"MDQ6VXNlcjQ4MjQwMzg=","avatar_url":"https://avatars2.githubusercontent.com/u/4824038?v=4","gravatar_id":"","url":"https://api.github.com/users/ciottied","html_url":"https://github.com/ciottied","followers_url":"https://api.github.com/users/ciottied/followers","following_url":"https://api.github.com/users/ciottied/following{/other_user}","gists_url":"https://api.github.com/users/ciottied/gists{/gist_id}","starred_url":"https://api.github.com/users/ciottied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciottied/subscriptions","organizations_url":"https://api.github.com/users/ciottied/orgs","repos_url":"https://api.github.com/users/ciottied/repos","events_url":"https://api.github.com/users/ciottied/events{/privacy}","received_events_url":"https://api.github.com/users/ciottied/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T15:44:16Z","updated_at":"2018-06-20T15:44:16Z","author_association":"NONE","body":"Right Now Another example:\r\n\r\nI logged:\r\n`20/06/2018 16.40.38.025 \r\n------+++------\r\nBitfinex Connection Lost\r\n------+++------\r\n20/06/2018 16.40.41.143 \r\n------+++------\r\nBitfinex Connection Restored\r\n------+++------\r\n20/06/2018 16.41.14.850 \r\n------+++------\r\nBitfinex Connection Lost\r\n------+++------\r\n20/06/2018 16.41.17.115 \r\n------+++------\r\nBitfinex Connection Restored\r\n------+++------`\r\n\r\nAnd Subscriptions (at least candle subscriptions than in my app fires all the events) are gone.\r\nThe 17:00:00 Candle was not logged.\r\n\r\n"}}
{"actor":{"display_login":"ciottied"}}