From d96faa35ddc9d12f0727e24d0611b04557a182dc Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 25 Aug 2017 19:13:10 +0200 Subject: [PATCH] Print warning when server.timeout is used with Python < 3.5.2 --- radicale/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radicale/__init__.py b/radicale/__init__.py index 9b2fec7..a54c792 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -124,6 +124,10 @@ class HTTPServer(wsgiref.simple_server.WSGIServer): self.server_close() raise + if self.client_timeout and sys.version_info < (3, 5, 2): + self.logger.warning("Using server.timeout with Python < 3.5.2 " + "can cause network connection failures") + def get_request(self): # Set timeout for client _socket, address = super().get_request()