diff --git a/gunicorn/workers/gthread.py b/gunicorn/workers/gthread.py index f36d92c4..b6fe5a1a 100644 --- a/gunicorn/workers/gthread.py +++ b/gunicorn/workers/gthread.py @@ -61,7 +61,7 @@ class TConn(object): if self.parser is None: # wrap the socket if needed if self.cfg.is_ssl: - self.sock = ssl.wrap_socket(client, server_side=True, + self.sock = ssl.wrap_socket(self.sock, server_side=True, **self.cfg.ssl_options) # initialize the parser