{"action":"created","issue":{"url":"https://api.github.com/repos/sfackler/rust-openssl/issues/308","labels_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/308/comments","events_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/308/events","html_url":"https://github.com/sfackler/rust-openssl/issues/308","id":118026652,"number":308,"title":"Make MaybeSslStream clonable","user":{"login":"the-kenny","id":31167,"avatar_url":"https://avatars.githubusercontent.com/u/31167?v=3","gravatar_id":"","url":"https://api.github.com/users/the-kenny","html_url":"https://github.com/the-kenny","followers_url":"https://api.github.com/users/the-kenny/followers","following_url":"https://api.github.com/users/the-kenny/following{/other_user}","gists_url":"https://api.github.com/users/the-kenny/gists{/gist_id}","starred_url":"https://api.github.com/users/the-kenny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-kenny/subscriptions","organizations_url":"https://api.github.com/users/the-kenny/orgs","repos_url":"https://api.github.com/users/the-kenny/repos","events_url":"https://api.github.com/users/the-kenny/events{/privacy}","received_events_url":"https://api.github.com/users/the-kenny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T12:02:32Z","updated_at":"2015-11-20T18:19:16Z","closed_at":null,"body":"Right now I'm using one main thread to send data to a socket and a second thread to read & parse the returned data. \r\n\r\nWithout SSL, I can clone the ```TcpStream``` via ```try_clone()```. I can also clone a ```SslStream``` via the same function.\r\n\r\nWhat I can't do is clone ```MaybeSslStream``` which prevents me from implementing optional SSL support.\r\n\r\nIs there any chance ```MaybeSslStream``` can get ```try_clone()``` too? If not, is there another way to get that behavior?\r\n\r\n\r\nNote that #6 was the ticket about ```TcpStream``` implementing ```Clone```."},"comment":{"url":"https://api.github.com/repos/sfackler/rust-openssl/issues/comments/158480735","html_url":"https://github.com/sfackler/rust-openssl/issues/308#issuecomment-158480735","issue_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/308","id":158480735,"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-11-20T18:19:16Z","updated_at":"2015-11-20T18:19:16Z","body":"Should be fine, in the same kind of unfortunate way we do it now for `SslStream<TcpStream>`"}}