summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2017-03-20 08:47:41 +0100
committerTomas Krizek <tkrizek@redhat.com>2017-03-20 19:24:28 +0100
commit7beb6d1cad7e2200208cb14be6c823a89abf0dc3 (patch)
treed9aa74226ed47eee01381dc4bfc3c6ad7b87f4f1
parent0bb858ea770e081817dc243579d08ad1f113e825 (diff)
downloadfreeipa-7beb6d1cad7e2200208cb14be6c823a89abf0dc3.tar.gz
freeipa-7beb6d1cad7e2200208cb14be6c823a89abf0dc3.tar.xz
freeipa-7beb6d1cad7e2200208cb14be6c823a89abf0dc3.zip
Use connection keep-alive
Do not forcefully close the connection after every request. This enables HTTP connection keep-alive, also known as persistent TCP and TLS/SSL connection. Keep-alive speed up consecutive HTTP requests by 15% (for local, low-latency network connections to a fast server) to multiple times (high latency connections or remote peers). https://pagure.io/freeipa/issue/6641 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
-rw-r--r--ipalib/rpc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py
index 499ddeb02..106cabe66 100644
--- a/ipalib/rpc.py
+++ b/ipalib/rpc.py
@@ -686,7 +686,7 @@ class KerbTransport(SSLTransport):
return self.parse_response(response)
except gssapi.exceptions.GSSError as e:
self._handle_exception(e)
- finally:
+ except BaseException:
self.close()
if six.PY3: