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

Added the possibility of passing an external socket to HTTP20Connection #418

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hyper/http20/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class HTTP20Connection(object):
def __init__(self, host, port=None, secure=None, window_manager=None,
enable_push=False, ssl_context=None, proxy_host=None,
proxy_port=None, force_proto=None, proxy_headers=None,
timeout=None, **kwargs):
timeout=None, external_socket=None, **kwargs):
"""
Creates an HTTP/2 connection to a specific server.
"""
Expand Down Expand Up @@ -154,6 +154,8 @@ def __init__(self, host, port=None, secure=None, window_manager=None,
# timeout
self._timeout = timeout

self._sock = external_socket

return

def __init_state(self):
Expand Down