From 8dc9e5053010634e499ea01fe0126b5e8b74aec6 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Fri, 20 Sep 2019 14:28:44 +0200 Subject: [PATCH] pycurl: skip host verification to speed up curl a bit. --- rhodecode/lib/vcs/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rhodecode/lib/vcs/__init__.py b/rhodecode/lib/vcs/__init__.py index a1f6879a..9f1a4be1 100644 --- a/rhodecode/lib/vcs/__init__.py +++ b/rhodecode/lib/vcs/__init__.py @@ -128,6 +128,8 @@ class CurlSession(object): curl.setopt(curl.TCP_NODELAY, True) curl.setopt(curl.PROTOCOLS, curl.PROTO_HTTP) curl.setopt(curl.USERAGENT, 'RhodeCode HTTP {}'.format(rhodecode.__version__)) + curl.setopt(curl.SSL_VERIFYPEER, 0) + curl.setopt(curl.SSL_VERIFYHOST, 0) self._curl = curl def post(self, url, data, allow_redirects=False):