{"action":"created","issue":{"url":"https://api.github.com/repos/sfackler/rust-native-tls/issues/59","repository_url":"https://api.github.com/repos/sfackler/rust-native-tls","labels_url":"https://api.github.com/repos/sfackler/rust-native-tls/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/rust-native-tls/issues/59/comments","events_url":"https://api.github.com/repos/sfackler/rust-native-tls/issues/59/events","html_url":"https://github.com/sfackler/rust-native-tls/issues/59","id":271212329,"number":59,"title":"[Question] confused about HandshakeError::Interrupted","user":{"login":"osa1","id":448274,"avatar_url":"https://avatars1.githubusercontent.com/u/448274?v=4","gravatar_id":"","url":"https://api.github.com/users/osa1","html_url":"https://github.com/osa1","followers_url":"https://api.github.com/users/osa1/followers","following_url":"https://api.github.com/users/osa1/following{/other_user}","gists_url":"https://api.github.com/users/osa1/gists{/gist_id}","starred_url":"https://api.github.com/users/osa1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osa1/subscriptions","organizations_url":"https://api.github.com/users/osa1/orgs","repos_url":"https://api.github.com/users/osa1/repos","events_url":"https://api.github.com/users/osa1/events{/privacy}","received_events_url":"https://api.github.com/users/osa1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-04T18:12:11Z","updated_at":"2017-11-04T18:42:23Z","closed_at":null,"author_association":"NONE","body":"Sorry this is not really an issue but a question..\r\n\r\nI'm trying to understand how to use `native-tls` with non-blocking sockets (more specifically, `TcpStream`). `TlsConnector::connect` returns `HandshakeError::Interrupted`, but it doesn't say what it needs to do, reading or writing. So I'm not sure what signal to wait for (i.e. readiness event).\r\n\r\nAssuming I'm not the only one it may be a good idea to add a word or two about this in the documentation..\r\n\r\nThanks.."},"comment":{"url":"https://api.github.com/repos/sfackler/rust-native-tls/issues/comments/341920370","html_url":"https://github.com/sfackler/rust-native-tls/issues/59#issuecomment-341920370","issue_url":"https://api.github.com/repos/sfackler/rust-native-tls/issues/59","id":341920370,"user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars0.githubusercontent.com/u/1455697?v=4","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"created_at":"2017-11-04T18:42:23Z","updated_at":"2017-11-04T18:42:23Z","author_association":"OWNER","body":"The best option I'm aware of is to wrap the `TcpStream` in something that records if the last operation was a read or write."}}
{"actor":{"display_login":"sfackler"}}