Skip to content

Commit 997e583

Browse files
authored
Merge pull request #1286 from docker/1.10.6-release
1.10.6 release
2 parents 6f5e19f + 80ad738 commit 997e583

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

docker/transport/npipesocket.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

docker/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "1.10.5"
1+
version = "1.10.6"
22
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

docs/change_log.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
Change 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+
415
1.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

0 commit comments

Comments
 (0)