File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed
Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -169,13 +169,16 @@ def setblocking(self, flag):
169169
170170 def settimeout (self , value ):
171171 if value is None :
172- self ._timeout = win32pipe .NMPWAIT_NOWAIT
172+ # Blocking mode
173+ self ._timeout = win32pipe .NMPWAIT_WAIT_FOREVER
173174 elif not isinstance (value , (float , int )) or value < 0 :
174175 raise ValueError ('Timeout value out of range' )
175176 elif value == 0 :
176- self ._timeout = win32pipe .NMPWAIT_USE_DEFAULT_WAIT
177+ # Non-blocking mode
178+ self ._timeout = win32pipe .NMPWAIT_NO_WAIT
177179 else :
178- self ._timeout = value
180+ # Timeout mode - Value converted to milliseconds
181+ self ._timeout = value * 1000
179182
180183 def gettimeout (self ):
181184 return self ._timeout
Original file line number Diff line number Diff line change 1- version = "1.10.5 "
1+ version = "1.10.6 "
22version_info = tuple ([int (d ) for d in version .split ("-" )[0 ].split ("." )])
Original file line number Diff line number Diff line change 11Change Log
22==========
33
4+ 1.10.6
5+ ------
6+
7+ [ List of PRs / issues for this release] ( https://github.com/docker/docker-py/milestone/26?closed=1 )
8+
9+ ### Bugfixes
10+
11+ * Fixed an issue where setting a ` NpipeSocket ` instance to blocking mode would
12+ put it in non-blocking mode and vice-versa.
13+
14+
4151.10.5
516------
617
7- [ List of PRs / issues for this release] ( https://github.com/docker/docker-py/milestone/24 ?closed=1 )
18+ [ List of PRs / issues for this release] ( https://github.com/docker/docker-py/milestone/25 ?closed=1 )
819
920### Bugfixes
1021
You can’t perform that action at this time.
0 commit comments