mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
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>
This commit is contained in:
parent
0bb858ea77
commit
7beb6d1cad
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user