components/mercurial/patches/https_proxy.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Wed, 04 Mar 2015 16:03:27 +0100
branchs11u2-sru
changeset 3943 93bc1e9a6489
parent 3045 0121e7323666
permissions -rw-r--r--
17541409 dtrace support in perl causes segv core dump from perl scripts.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
150
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
# 7029500 Mercurial doesn't work through https in snv_161
196
816e398e992c 6907515 mercurial 1.8.2
Danek Duvall <danek.duvall@oracle.com>
parents: 150
diff changeset
     2
3045
0121e7323666 18050227 mercurial 2.8.2
Danek Duvall <danek.duvall@oracle.com>
parents: 821
diff changeset
     3
--- mercurial-2.8.2/mercurial/keepalive.py	Wed Jan  2 03:46:39 2014
0121e7323666 18050227 mercurial 2.8.2
Danek Duvall <danek.duvall@oracle.com>
parents: 821
diff changeset
     4
+++ mercurial-2.8.2/mercurial/keepalive.py	Wed Jan  2 03:46:39 2014
821
5450c885c205 7167655 mercurial 2.2.1
Danek Duvall <danek.duvall@oracle.com>
parents: 400
diff changeset
     5
@@ -247,6 +251,8 @@
150
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
             else:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
                 # no (working) free connections were found.  Create a new one.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
                 h = http_class(host)
196
816e398e992c 6907515 mercurial 1.8.2
Danek Duvall <danek.duvall@oracle.com>
parents: 150
diff changeset
     9
+                if req._tunnel_host:
816e398e992c 6907515 mercurial 1.8.2
Danek Duvall <danek.duvall@oracle.com>
parents: 150
diff changeset
    10
+                        h._set_tunnel(req._tunnel_host)
816e398e992c 6907515 mercurial 1.8.2
Danek Duvall <danek.duvall@oracle.com>
parents: 150
diff changeset
    11
                 if DEBUG:
816e398e992c 6907515 mercurial 1.8.2
Danek Duvall <danek.duvall@oracle.com>
parents: 150
diff changeset
    12
                     DEBUG.info("creating new connection to %s (%d)",
816e398e992c 6907515 mercurial 1.8.2
Danek Duvall <danek.duvall@oracle.com>
parents: 150
diff changeset
    13
                                host, id(h))