{"action":"created","issue":{"url":"https://api.github.com/repos/ProgVal/irctest/issues/6","labels_url":"https://api.github.com/repos/ProgVal/irctest/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ProgVal/irctest/issues/6/comments","events_url":"https://api.github.com/repos/ProgVal/irctest/issues/6/events","html_url":"https://github.com/ProgVal/irctest/pull/6","id":123155972,"number":6,"title":"Automatically wait for server to start when connecting","user":{"login":"DanielOaks","id":251281,"avatar_url":"https://avatars.githubusercontent.com/u/251281?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielOaks","html_url":"https://github.com/DanielOaks","followers_url":"https://api.github.com/users/DanielOaks/followers","following_url":"https://api.github.com/users/DanielOaks/following{/other_user}","gists_url":"https://api.github.com/users/DanielOaks/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielOaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielOaks/subscriptions","organizations_url":"https://api.github.com/users/DanielOaks/orgs","repos_url":"https://api.github.com/users/DanielOaks/repos","events_url":"https://api.github.com/users/DanielOaks/events{/privacy}","received_events_url":"https://api.github.com/users/DanielOaks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-20T11:41:09Z","updated_at":"2015-12-20T11:53:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ProgVal/irctest/pulls/6","html_url":"https://github.com/ProgVal/irctest/pull/6","diff_url":"https://github.com/ProgVal/irctest/pull/6.diff","patch_url":"https://github.com/ProgVal/irctest/pull/6.patch"},"body":"This makes it so if we can't connect to a server, it waits half a second then tries again, looping until we connect. This doesn't have a maximum wait time, it just keeps going until either it connects or irctest is killed.\r\n\r\nMaybe something like this (doing it automatically) could be used to replace the explicit server start wait time setting? Or would it be useful to have both?"},"comment":{"url":"https://api.github.com/repos/ProgVal/irctest/issues/comments/166111899","html_url":"https://github.com/ProgVal/irctest/pull/6#issuecomment-166111899","issue_url":"https://api.github.com/repos/ProgVal/irctest/issues/6","id":166111899,"user":{"login":"DanielOaks","id":251281,"avatar_url":"https://avatars.githubusercontent.com/u/251281?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielOaks","html_url":"https://github.com/DanielOaks","followers_url":"https://api.github.com/users/DanielOaks/followers","following_url":"https://api.github.com/users/DanielOaks/following{/other_user}","gists_url":"https://api.github.com/users/DanielOaks/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielOaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielOaks/subscriptions","organizations_url":"https://api.github.com/users/DanielOaks/orgs","repos_url":"https://api.github.com/users/DanielOaks/repos","events_url":"https://api.github.com/users/DanielOaks/events{/privacy}","received_events_url":"https://api.github.com/users/DanielOaks/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T11:53:59Z","updated_at":"2015-12-20T11:53:59Z","body":"Ah, I just put it close to where the clients try to connect to the servers, looked like the best place at first glance.\r\n\r\nIf we have it in `*Controller.run()` it looks like we'll need to duplicate this `conn.connect()` loop in each separate server (or call a function that does it and then disconnects right away) at the end of each `run()` call, or am I missing something / is there a nicer way to handle it?"}}