Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
7a623c40
Kaydet (Commit)
7a623c40
authored
Ock 09, 2015
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prioritize system-installed urllib3 over requests vendored urllib3.
üst
09ea7197
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
ssladapter.py
docker/ssladapter/ssladapter.py
+2
-2
unixconn.py
docker/unixconn/unixconn.py
+7
-10
No files found.
docker/ssladapter/ssladapter.py
Dosyayı görüntüle @
7a623c40
...
...
@@ -6,9 +6,9 @@ from distutils.version import StrictVersion
from
requests.adapters
import
HTTPAdapter
import
ssl
try
:
import
requests.packages.urllib3
as
urllib3
except
ImportError
:
import
urllib3
except
ImportError
:
import
requests.packages.urllib3
as
urllib3
PoolManager
=
urllib3
.
poolmanager
.
PoolManager
...
...
docker/unixconn/unixconn.py
Dosyayı görüntüle @
7a623c40
...
...
@@ -21,14 +21,9 @@ import requests.adapters
import
socket
try
:
import
requests.packages.urllib3.connectionpool
as
connectionpool
import
urllib3
except
ImportError
:
import
urllib3.connectionpool
as
connectionpool
try
:
from
requests.packages.urllib3._collections
import
RecentlyUsedContainer
except
ImportError
:
from
urllib3._collections
import
RecentlyUsedContainer
import
requests.packages.urllib3
as
urllib3
class
UnixHTTPConnection
(
httplib
.
HTTPConnection
,
object
):
...
...
@@ -53,10 +48,11 @@ class UnixHTTPConnection(httplib.HTTPConnection, object):
super
(
UnixHTTPConnection
,
self
)
.
request
(
method
,
url
,
**
kwargs
)
class
UnixHTTPConnectionPool
(
connectionpool
.
HTTPConnectionPool
):
class
UnixHTTPConnectionPool
(
urllib3
.
connectionpool
.
HTTPConnectionPool
):
def
__init__
(
self
,
base_url
,
socket_path
,
timeout
=
60
):
connectionpool
.
HTTPConnectionPool
.
__init__
(
self
,
'localhost'
,
timeout
=
timeout
)
urllib3
.
connectionpool
.
HTTPConnectionPool
.
__init__
(
self
,
'localhost'
,
timeout
=
timeout
)
self
.
base_url
=
base_url
self
.
socket_path
=
socket_path
self
.
timeout
=
timeout
...
...
@@ -68,6 +64,7 @@ class UnixHTTPConnectionPool(connectionpool.HTTPConnectionPool):
class
UnixAdapter
(
requests
.
adapters
.
HTTPAdapter
):
def
__init__
(
self
,
base_url
,
timeout
=
60
):
RecentlyUsedContainer
=
urllib3
.
_collections
.
RecentlyUsedContainer
self
.
base_url
=
base_url
self
.
timeout
=
timeout
self
.
pools
=
RecentlyUsedContainer
(
10
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment