Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Hardcoded certificate path in tls module causing connection errors. #249

@JasonGowthorpe

Description

@JasonGowthorpe

Even when specifying the ssl_context to the HTTP20Connection instance, the tls module tries to create the global _context. If there isn't a file at the hardcoded cert_loc path then all requests fail with an IO error before they are even made.

File "hyper\http20\connection.pyo", line 262, in request
File "hyper\http20\connection.pyo", line 525, in endheaders
File "hyper\http20\connection.pyo", line 349, in connect
File "hyper\tls.pyo", line 36, in wrap_socket
File "hyper\tls.pyo", line 99, in init_context
IOError: [Errno 2] No such file or directory

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