Skip to content

start_tls() loses buffered data and doesn't work when upgrading a stream #707

@fizzi01

Description

@fizzi01

When using StreamWriter.start_tls() (or loop.start_tls()) to upgrade a connection to TLS mid-stream, any data already buffered in the StreamReader is lost, and the call hangs forever.

The problem is present in asyncio too: python/cpython#142352 , and a solution has been provided: python/cpython#142354

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions