{"action":"created","issue":{"url":"https://api.github.com/repos/sfackler/rust-openssl/issues/250","labels_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/250/comments","events_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/250/events","html_url":"https://github.com/sfackler/rust-openssl/issues/250","id":98663721,"number":250,"title":"SslStream::{connect, accept} should not return an SslStream<S>","user":{"login":"cmr","id":704250,"avatar_url":"https://avatars.githubusercontent.com/u/704250?v=3","gravatar_id":"","url":"https://api.github.com/users/cmr","html_url":"https://github.com/cmr","followers_url":"https://api.github.com/users/cmr/followers","following_url":"https://api.github.com/users/cmr/following{/other_user}","gists_url":"https://api.github.com/users/cmr/gists{/gist_id}","starred_url":"https://api.github.com/users/cmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmr/subscriptions","organizations_url":"https://api.github.com/users/cmr/orgs","repos_url":"https://api.github.com/users/cmr/repos","events_url":"https://api.github.com/users/cmr/events{/privacy}","received_events_url":"https://api.github.com/users/cmr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-03T03:24:43Z","updated_at":"2015-08-03T03:46:08Z","closed_at":null,"body":"This prevents giving `SslStream` a `RawFd` directly, for example, since it tries to treat it as `SslStream<RawFd>` and `RawFd` does not implement `Read` or `Write`. Instead, a special marker struct should be used that \"implements\" the relevant traits, since the impls are never used except to appease the type system."},"comment":{"url":"https://api.github.com/repos/sfackler/rust-openssl/issues/comments/127114259","html_url":"https://github.com/sfackler/rust-openssl/issues/250#issuecomment-127114259","issue_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/250","id":127114259,"user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","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":"2015-08-03T03:46:08Z","updated_at":"2015-08-03T03:46:08Z","body":"The 99% use case for `SslStream` is to wrap another Rust stream type. Why are you using a `RawFd` directly? Won't a `TcpStream` (with the underlying FD possibly tweaked via `as_raw_fd` or even constructed outright by `from_raw_fd`) suffice?"}}