aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r--netlib/tcp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index e1318435..414c1237 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -284,6 +284,9 @@ class BaseHandler:
def handle(self): # pragma: no cover
raise NotImplementedError
+ def settimeout(self, n):
+ self.connection.settimeout(n)
+
def close(self):
"""
Does a hard close of the socket, i.e. a shutdown, followed by a close.