Skip to content

Commit

Permalink
Merge pull request #1286 from docker/1.10.6-release
Browse files Browse the repository at this point in the history
1.10.6 release
  • Loading branch information
shin- authored Nov 2, 2016
2 parents 6f5e19f + 80ad738 commit 997e583
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
9 changes: 6 additions & 3 deletions docker/transport/npipesocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,16 @@ def setblocking(self, flag):

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
Expand Down
2 changes: 1 addition & 1 deletion docker/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "1.10.5"
version = "1.10.6"
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])
13 changes: 12 additions & 1 deletion docs/change_log.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
Change Log
==========

1.10.6
------

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/26?closed=1)

### Bugfixes

* Fixed an issue where setting a `NpipeSocket` instance to blocking mode would
put it in non-blocking mode and vice-versa.


1.10.5
------

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/24?closed=1)
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/25?closed=1)

### Bugfixes

Expand Down

0 comments on commit 997e583

Please sign in to comment.