{"action":"closed","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2515","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2515/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2515/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/2515/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/2515","id":18583063,"number":2515,"title":"ofxTCPManager connect timeout feature","user":{"login":"trentbrooks","id":578782,"avatar_url":"https://avatars.githubusercontent.com/u/578782?v=3","gravatar_id":"","url":"https://api.github.com/users/trentbrooks","html_url":"https://github.com/trentbrooks","followers_url":"https://api.github.com/users/trentbrooks/followers","following_url":"https://api.github.com/users/trentbrooks/following{/other_user}","gists_url":"https://api.github.com/users/trentbrooks/gists{/gist_id}","starred_url":"https://api.github.com/users/trentbrooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trentbrooks/subscriptions","organizations_url":"https://api.github.com/users/trentbrooks/orgs","repos_url":"https://api.github.com/users/trentbrooks/repos","events_url":"https://api.github.com/users/trentbrooks/events{/privacy}","received_events_url":"https://api.github.com/users/trentbrooks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/addon","name":"addon","color":"d68e22"},{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/bug","name":"bug","color":"b31d1d"},{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/fix-proposed","name":"fix-proposed","color":"31e03a"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-08-27T01:18:35Z","updated_at":"2015-01-12T21:00:07Z","closed_at":"2015-01-12T21:00:07Z","body":"Hi, I was wondering if it would be useful to have a timeout for the Connect method in ofxTCPManager as there is for sending, receiving and accepting TCP messages? Without a timeout, an application attempting to connect to an invalid ip address (eg. \"126.0.0.1\") will hang for about 90 seconds then crash.\r\n\r\nHere's a post on the forum which describes the problem with a few back links-\r\nhttp://forum.openframeworks.cc/index.php/topic,13104.0.html\r\n\r\nAnd here is a fix (with 5 second timeout) -\r\nhttps://github.com/trentbrooks/openFrameworks/commit/9ef106ceadee7953bfc02c37b7a62d79065b7ae5\r\n\r\nTrent"}}