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):
169
169
170
170
def settimeout (self , value ):
171
171
if value is None :
172
- self ._timeout = win32pipe .NMPWAIT_NOWAIT
172
+ # Blocking mode
173
+ self ._timeout = win32pipe .NMPWAIT_WAIT_FOREVER
173
174
elif not isinstance (value , (float , int )) or value < 0 :
174
175
raise ValueError ('Timeout value out of range' )
175
176
elif value == 0 :
176
- self ._timeout = win32pipe .NMPWAIT_USE_DEFAULT_WAIT
177
+ # Non-blocking mode
178
+ self ._timeout = win32pipe .NMPWAIT_NO_WAIT
177
179
else :
178
- self ._timeout = value
180
+ # Timeout mode - Value converted to milliseconds
181
+ self ._timeout = value * 1000
179
182
180
183
def gettimeout (self ):
181
184
return self ._timeout
Original file line number Diff line number Diff line change 1
- version = "1.10.5 "
1
+ version = "1.10.6 "
2
2
version_info = tuple ([int (d ) for d in version .split ("-" )[0 ].split ("." )])
Original file line number Diff line number Diff line change 1
1
Change Log
2
2
==========
3
3
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
+
4
15
1.10.5
5
16
------
6
17
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 )
8
19
9
20
### Bugfixes
10
21
You can’t perform that action at this time.
0 commit comments