From 75b59598921e7f34f7d2b53951c5f0affe18c928 Mon Sep 17 00:00:00 2001 From: Jason R Briggs Date: Sun, 27 Sep 2015 09:03:44 +0100 Subject: [PATCH] fix timeout (https://github.com/jasonrbriggs/stomp.py/issues/55) --- stomp/transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stomp/transport.py b/stomp/transport.py index a6e58130..c63a0989 100644 --- a/stomp/transport.py +++ b/stomp/transport.py @@ -693,7 +693,8 @@ def attempt_connection(self): cert_reqs=cert_validation, ca_certs=ssl_params['ca_certs'], ssl_version=ssl_params['ssl_version']) - self.socket.settimeout(self.__timeout) + + self.socket.settimeout(self.__timeout) if self.blocking is not None: self.socket.setblocking(self.blocking)