Skip to content

Commit

Permalink
Merge pull request #1802 from docker/2.6.1-release
Browse files Browse the repository at this point in the history
2.6.1 release
  • Loading branch information
shin- authored Nov 9, 2017
2 parents 65ba043 + 2008f52 commit d400795
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
11 changes: 5 additions & 6 deletions docker/transport/unixconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
class UnixHTTPResponse(httplib.HTTPResponse, object):
def __init__(self, sock, *args, **kwargs):
disable_buffering = kwargs.pop('disable_buffering', False)
if six.PY2:
# FIXME: We may need to disable buffering on Py3 as well,
# but there's no clear way to do it at the moment. See:
# https://github.com/docker/docker-py/issues/1799
kwargs['buffering'] = not disable_buffering
super(UnixHTTPResponse, self).__init__(sock, *args, **kwargs)
if disable_buffering is True:
# We must first create a new pointer then close the old one
# to avoid closing the underlying socket.
new_fp = sock.makefile('rb', 0)
self.fp.close()
self.fp = new_fp


class UnixHTTPConnection(httplib.HTTPConnection, object):
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 = "2.6.0"
version = "2.6.1"
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
==========

2.6.1
-----

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

### Bugfixes

* Fixed a bug on Python 3 installations preventing the use of the `attach` and
`exec_run` methods.


2.6.0
-----

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

### Features

Expand Down

0 comments on commit d400795

Please sign in to comment.