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
65d900ec
Kaydet (Commit)
65d900ec
authored
Kas 02, 2016
tarafından
Joffrey F
Kaydeden (comit)
GitHub
Kas 02, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #1285 from docker/1284-settimeout-fix
Fix NpipeSocket.settimeout to match expected behavior
üst
4119fa93
422bc2be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
npipesocket.py
docker/transport/npipesocket.py
+6
-3
No files found.
docker/transport/npipesocket.py
Dosyayı görüntüle @
65d900ec
...
...
@@ -170,13 +170,16 @@ class NpipeSocket(object):
def
settimeout
(
self
,
value
):
if
value
is
None
:
self
.
_timeout
=
win32pipe
.
NMPWAIT_NOWAIT
# Blocking mode
self
.
_timeout
=
win32pipe
.
NMPWAIT_WAIT_FOREVER
elif
not
isinstance
(
value
,
(
float
,
int
))
or
value
<
0
:
raise
ValueError
(
'Timeout value out of range'
)
elif
value
==
0
:
self
.
_timeout
=
win32pipe
.
NMPWAIT_USE_DEFAULT_WAIT
# Non-blocking mode
self
.
_timeout
=
win32pipe
.
NMPWAIT_NO_WAIT
else
:
self
.
_timeout
=
value
# Timeout mode - Value converted to milliseconds
self
.
_timeout
=
value
*
1000
def
gettimeout
(
self
):
return
self
.
_timeout
...
...
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