{"action":"created","issue":{"url":"https://api.github.com/repos/pocoproject/poco/issues/1076","labels_url":"https://api.github.com/repos/pocoproject/poco/issues/1076/labels{/name}","comments_url":"https://api.github.com/repos/pocoproject/poco/issues/1076/comments","events_url":"https://api.github.com/repos/pocoproject/poco/issues/1076/events","html_url":"https://github.com/pocoproject/poco/issues/1076","id":121590457,"number":1076,"title":"Persistent \"Host not found\" error after network is enabled","user":{"login":"oblitum","id":1269815,"avatar_url":"https://avatars.githubusercontent.com/u/1269815?v=3","gravatar_id":"","url":"https://api.github.com/users/oblitum","html_url":"https://github.com/oblitum","followers_url":"https://api.github.com/users/oblitum/followers","following_url":"https://api.github.com/users/oblitum/following{/other_user}","gists_url":"https://api.github.com/users/oblitum/gists{/gist_id}","starred_url":"https://api.github.com/users/oblitum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblitum/subscriptions","organizations_url":"https://api.github.com/users/oblitum/orgs","repos_url":"https://api.github.com/users/oblitum/repos","events_url":"https://api.github.com/users/oblitum/events{/privacy}","received_events_url":"https://api.github.com/users/oblitum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pocoproject/poco/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-10T22:22:30Z","updated_at":"2015-12-11T04:08:09Z","closed_at":null,"body":"If I start my application with my wifi disabled I get \"host not found\" for anything like `StreamSocket(SocketAddress(\"google.com:80\"))`. If I let the application running in a loop trying to connect it keeps getting \"host not found\",  that's OK, but when I enable my wifi back the application keeps returning \"host not found\".\r\n\r\nThis doesn't happen if my application starts when my wifi is ON, then turned OFF and ON again. If the application starts with wifi OFF, it doesn't matter whether I turn wifi ON, it simply won't connect."},"comment":{"url":"https://api.github.com/repos/pocoproject/poco/issues/comments/163834521","html_url":"https://github.com/pocoproject/poco/issues/1076#issuecomment-163834521","issue_url":"https://api.github.com/repos/pocoproject/poco/issues/1076","id":163834521,"user":{"login":"oblitum","id":1269815,"avatar_url":"https://avatars.githubusercontent.com/u/1269815?v=3","gravatar_id":"","url":"https://api.github.com/users/oblitum","html_url":"https://github.com/oblitum","followers_url":"https://api.github.com/users/oblitum/followers","following_url":"https://api.github.com/users/oblitum/following{/other_user}","gists_url":"https://api.github.com/users/oblitum/gists{/gist_id}","starred_url":"https://api.github.com/users/oblitum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblitum/subscriptions","organizations_url":"https://api.github.com/users/oblitum/orgs","repos_url":"https://api.github.com/users/oblitum/repos","events_url":"https://api.github.com/users/oblitum/events{/privacy}","received_events_url":"https://api.github.com/users/oblitum/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T04:08:09Z","updated_at":"2015-12-11T04:08:09Z","body":"@aleks-f Hi, the situation I mention already provides a SSCCE. Something along this line:\r\n\r\n```\r\nfor (;;) {\r\n    try {\r\n        StreamSocket(SocketAddress(\"google.com:80\"));\r\n        cout << \"connected\" << endl;\r\n        break;\r\n    } catch(...) {\r\n        cout << \"not connected\" << endl;\r\n        std::this_thread::sleep_for(10s);\r\n    }\r\n}\r\n```\r\n\r\nI'll come back later to put it in a compilable state, but the description is just that."}}