pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0002-Use-connection-keep-alive.patch

ac7d03
From 1216aaa3c5f5e3dc3a81de81633eaade15df1129 Mon Sep 17 00:00:00 2001
ac7d03
From: Christian Heimes <cheimes@redhat.com>
ac7d03
Date: Mon, 20 Mar 2017 08:47:41 +0100
ac7d03
Subject: [PATCH] Use connection keep-alive
ac7d03
ac7d03
Do not forcefully close the connection after every request. This enables
ac7d03
HTTP connection keep-alive, also known as persistent TCP and TLS/SSL
ac7d03
connection. Keep-alive speed up consecutive HTTP requests by 15% (for
ac7d03
local, low-latency network connections to a fast server) to multiple
ac7d03
times (high latency connections or remote peers).
ac7d03
ac7d03
https://pagure.io/freeipa/issue/6641
ac7d03
ac7d03
Signed-off-by: Christian Heimes <cheimes@redhat.com>
ac7d03
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
ac7d03
---
ac7d03
 ipalib/rpc.py | 2 +-
ac7d03
 1 file changed, 1 insertion(+), 1 deletion(-)
ac7d03
ac7d03
diff --git a/ipalib/rpc.py b/ipalib/rpc.py
ac7d03
index 16ffb8b541107e3ce1a84d143db007a1105b49b5..8d587180a65bd06b644c6df23ac9fb26eb7e97dd 100644
ac7d03
--- a/ipalib/rpc.py
ac7d03
+++ b/ipalib/rpc.py
ac7d03
@@ -686,7 +686,7 @@ class KerbTransport(SSLTransport):
ac7d03
                 return self.parse_response(response)
ac7d03
         except gssapi.exceptions.GSSError as e:
ac7d03
             self._handle_exception(e)
ac7d03
-        finally:
ac7d03
+        except BaseException:
ac7d03
             self.close()
ac7d03
 
ac7d03
     if six.PY3:
ac7d03
-- 
ac7d03
2.12.1
ac7d03