[yum-commits] urlgrabber/grabber.py

skvidal at osuosl.org skvidal at osuosl.org
Fri Apr 8 16:27:42 UTC 2011


 urlgrabber/grabber.py |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 59bfadbf84d54e279049e1743fd2b20bdac01857
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Fri Apr 8 12:27:00 2011 -0400

    if we're using a client-side certificate we need to turn off
    reusing of connections b/c nss is odd

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index e2cd5c9..36212cf 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1250,6 +1250,8 @@ class PyCurlFileObject(object):
                 self.curl_obj.setopt(pycurl.SSLKEYTYPE, opts.ssl_key_type)
             if opts.ssl_cert:
                 self.curl_obj.setopt(pycurl.SSLCERT, opts.ssl_cert)
+                # if we have a client side cert - turn off reuse b/c nss is odd
+                self.curl_obj.setopt(pycurl.FORBID_REUSE, 1)
             if opts.ssl_cert_type:                
                 self.curl_obj.setopt(pycurl.SSLCERTTYPE, opts.ssl_cert_type)
             if opts.ssl_key_pass:


More information about the Yum-commits mailing list