aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r--netlib/tcp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index a79f3ac4..40bd4bde 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -185,7 +185,7 @@ class TCPClient:
"""
context = SSL.Context(method)
if options is not None:
- ctx.set_options(options)
+ context.set_options(options)
if clientcert:
try:
context.use_privatekey_file(clientcert)
@@ -220,7 +220,7 @@ class TCPClient:
self.connection.settimeout(n)
def gettimeout(self):
- self.connection.gettimeout()
+ return self.connection.gettimeout()
def close(self):
"""