Skip to content

upgrade_to_tls does not work correctly #186

Closed
@astrand

Description

@astrand

Kind of follow up to #184. Explicit FTPS works now, however:

  • Not possible to use the context API, since there is no way to call updgrade_to_tls() in between client.connect() and client.login().
  • I was not able to download from pyftpdlib until I used this construction:
await client.upgrade_to_tls(self.ssl_context)
client._upgraded_to_tls = True # pylint: disable=protected-access
client._open_connection = functools.partial(asyncio.open_connection, ssl=client.ssl) # pylint: disable=protected-access

AFAIK, _upgraded_to_tls is never set in the actual code, and _open_connection is incorrect after update since it is not update with new ssl instance.

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