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
700fbef4
Kaydet (Commit)
700fbef4
authored
Kas 09, 2017
tarafından
Joffrey F
Kaydeden (comit)
Joffrey F
Kas 09, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix broken unbuffered streaming with Py3
Signed-off-by:
Joffrey F
<
joffrey@docker.com
>
üst
f238fe55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
unixconn.py
docker/transport/unixconn.py
+5
-6
No files found.
docker/transport/unixconn.py
Dosyayı görüntüle @
700fbef4
...
@@ -21,13 +21,12 @@ RecentlyUsedContainer = urllib3._collections.RecentlyUsedContainer
...
@@ -21,13 +21,12 @@ RecentlyUsedContainer = urllib3._collections.RecentlyUsedContainer
class
UnixHTTPResponse
(
httplib
.
HTTPResponse
,
object
):
class
UnixHTTPResponse
(
httplib
.
HTTPResponse
,
object
):
def
__init__
(
self
,
sock
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
sock
,
*
args
,
**
kwargs
):
disable_buffering
=
kwargs
.
pop
(
'disable_buffering'
,
False
)
disable_buffering
=
kwargs
.
pop
(
'disable_buffering'
,
False
)
if
six
.
PY2
:
# FIXME: We may need to disable buffering on Py3 as well,
# but there's no clear way to do it at the moment. See:
# https://github.com/docker/docker-py/issues/1799
kwargs
[
'buffering'
]
=
not
disable_buffering
super
(
UnixHTTPResponse
,
self
)
.
__init__
(
sock
,
*
args
,
**
kwargs
)
super
(
UnixHTTPResponse
,
self
)
.
__init__
(
sock
,
*
args
,
**
kwargs
)
if
disable_buffering
is
True
:
# We must first create a new pointer then close the old one
# to avoid closing the underlying socket.
new_fp
=
sock
.
makefile
(
'rb'
,
0
)
self
.
fp
.
close
()
self
.
fp
=
new_fp
class
UnixHTTPConnection
(
httplib
.
HTTPConnection
,
object
):
class
UnixHTTPConnection
(
httplib
.
HTTPConnection
,
object
):
...
...
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