pgreco / rpms / ipa

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

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

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