{"action":"opened","issue":{"url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/319","labels_url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/319/comments","events_url":"https://api.github.com/repos/NETMF/netmf-interpreter/issues/319/events","html_url":"https://github.com/NETMF/netmf-interpreter/issues/319","id":109211122,"number":319,"title":"Socket.Connect timeout","user":{"login":"miloush","id":10546952,"avatar_url":"https://avatars.githubusercontent.com/u/10546952?v=3","gravatar_id":"","url":"https://api.github.com/users/miloush","html_url":"https://github.com/miloush","followers_url":"https://api.github.com/users/miloush/followers","following_url":"https://api.github.com/users/miloush/following{/other_user}","gists_url":"https://api.github.com/users/miloush/gists{/gist_id}","starred_url":"https://api.github.com/users/miloush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miloush/subscriptions","organizations_url":"https://api.github.com/users/miloush/orgs","repos_url":"https://api.github.com/users/miloush/repos","events_url":"https://api.github.com/users/miloush/events{/privacy}","received_events_url":"https://api.github.com/users/miloush/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T01:19:17Z","updated_at":"2015-10-01T01:19:17Z","closed_at":null,"body":"Question: How can I limit the amount of time the Socket tries to connect to a server?\r\n\r\nEspecially if the previous connection is terminated (i.e. debugging stopped), then reconnection is not allowed anytime soon. Looks like the traditionally offered solution is to use BeginConnect and wait for the handle with timeout (https://msdn.microsoft.com/en-us/library/4xzx2d41.aspx), which is not available in .NET MF."}}