Title: Wrapping an existing transport in SSL · Issue #492 · python/asyncio · GitHub
Open Graph Title: Wrapping an existing transport in SSL · Issue #492 · python/asyncio
X Title: Wrapping an existing transport in SSL · Issue #492 · python/asyncio
Description: I hope a question is acceptable here; I've googled and not found an answer. I want to connect to a remote Tor server listening on an SSL socket with asyncio. I have created an asyncio SocksProtocol to handle the negotation with the local...
Open Graph Description: I hope a question is acceptable here; I've googled and not found an answer. I want to connect to a remote Tor server listening on an SSL socket with asyncio. I have created an asyncio SocksProtocol...
X Description: I hope a question is acceptable here; I've googled and not found an answer. I want to connect to a remote Tor server listening on an SSL socket with asyncio. I have created an asyncio SocksProt...
Opengraph URL: https://github.com/python/asyncio/issues/492
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrapping an existing transport in SSL","articleBody":"I hope a question is acceptable here; I've googled and not found an answer.\r\n\r\nI want to connect to a remote Tor server listening on an SSL socket with asyncio.\r\n\r\nI have created an asyncio SocksProtocol to handle the negotation with the local tor proxy, and this works fine to establish a connection with the remote Tor server via loop.create_connection. However that leaves me with a transport, protocol pair, and I need to wrap the transport in SSL for the app to communicate properly with the remote server.\r\n\r\nI don't see a clean way to do this. One thing I tried was another loop.connection passing the transport's socket and an ssl arg, but that didn't work as it ends up triggering checks in asyncio because 2 transports are using the same base socket. Am I missing something obvious?","author":{"url":"https://github.com/kyuupichan","@type":"Person","name":"kyuupichan"},"datePublished":"2017-02-12T13:33:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/492/asyncio/issues/492"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f4bc27e7-2008-3ac3-23f4-b6a2850b0a3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEB0:18334E:1C206BC:2527191:696D7291 |
| html-safe-nonce | 05c8bdc9e6add85f8c1eddf672fab8462a6bdccce0a005c842216577960210af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUIwOjE4MzM0RToxQzIwNkJDOjI1MjcxOTE6Njk2RDcyOTEiLCJ2aXNpdG9yX2lkIjoiODcwMjI4MTIwMTU0MTI4MDQwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 55e225d6609fc05a0a60663d5ecbd41f2166e3ee59adfb2620e23cb296164a76 |
| hovercard-subject-tag | issue:207050320 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/asyncio/492/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c285a10b2ec52e2a9b1e8f00af9b220e62b1ae4049d23bcb10db6343e2bb8498/python/asyncio/issues/492 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c285a10b2ec52e2a9b1e8f00af9b220e62b1ae4049d23bcb10db6343e2bb8498/python/asyncio/issues/492 |
| og:image:alt | I hope a question is acceptable here; I've googled and not found an answer. I want to connect to a remote Tor server listening on an SSL socket with asyncio. I have created an asyncio SocksProtocol... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kyuupichan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/asyncio git https://github.com/python/asyncio.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 33739295 |
| octolytics-dimension-repository_nwo | python/asyncio |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33739295 |
| octolytics-dimension-repository_network_root_nwo | python/asyncio |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width