GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ssl docs: custom client socket example never connects · Issue #161763 · python/cpython

ssl docs: custom client socket example never connects #161763

New issue
Copy link
New issue
Copy link
Open
Open
ssl docs: custom client socket example never connects#161763
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-SSL

Description

@notatallshaw
notatallshaw
opened on Nov 10, 2026
Issue body actions

The custom-context client example wraps a new socket and immediately prints ssock.version(). It never calls connect(), so version() returns None and no TLS connection is made.

The SSLContext.wrap_socket() description also says that "context construction" is deferred for an unconnected client socket. The context already exists; CPython creates the underlying SSL object when SSLSocket.connect() is called. The example should connect before printing the negotiated version, and the description should name the deferred operation.

Linked PRs

  • gh-161763: Correct SSL docs for unconnected client sockets #161772
  • [3.15] gh-161763: Correct SSL docs for unconnected client sockets (#GH-61772) #161838
  • [3.14] gh-161763: Correct SSL docs for unconnected client sockets (#GH-61772) #161839

Activity

  1. notatallshaw commented on Nov 10, 2026

    @notatallshaw
    notatallshaw
    on Nov 10, 2026
    ContributorAuthor
    More actions

    This came up reviewing an error that can happen in truststore: sethmlarson/truststore#271

  2. notatallshaw
    added a commit that references this issue on Nov 10, 2026

    pythongh-161763: Qualify SSL socket method references

    c883649
  3. StanFromIreland
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    topic-SSL
    on Nov 10, 2026
  4. github-project-automation
    added this to docs issueson Nov 10, 2026
  5. github-project-automation
    moved this to Todo in docs issueson Nov 10, 2026
  6. gpshead
    added 3 commits that reference this issue on Nov 12, 2026

    gh-161763: Correct SSL docs for unconnected client sockets (#GH-61772)

    f112215

    [3.15] gh-161763: Correct SSL docs for unconnected client sockets (#G…

    f49bb59

    [3.14] gh-161763: Correct SSL docs for unconnected client sockets (#G…

    83b1e74
  7. orsenthil
    added a commit that references this issue on Nov 12, 2026

    pythongh-161763: Correct SSL docs for unconnected client sockets (#py…

    2753730
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-SSL

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.