Skip to content

Commit d400795

Browse files
authored
Merge pull request #1802 from docker/2.6.1-release
2.6.1 release
2 parents 65ba043 + 2008f52 commit d400795

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

docker/transport/unixconn.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121
class UnixHTTPResponse(httplib.HTTPResponse, object):
2222
def __init__(self, sock, *args, **kwargs):
2323
disable_buffering = kwargs.pop('disable_buffering', False)
24+
if six.PY2:
25+
# FIXME: We may need to disable buffering on Py3 as well,
26+
# but there's no clear way to do it at the moment. See:
27+
# https://github.com/docker/docker-py/issues/1799
28+
kwargs['buffering'] = not disable_buffering
2429
super(UnixHTTPResponse, self).__init__(sock, *args, **kwargs)
25-
if disable_buffering is True:
26-
# We must first create a new pointer then close the old one
27-
# to avoid closing the underlying socket.
28-
new_fp = sock.makefile('rb', 0)
29-
self.fp.close()
30-
self.fp = new_fp
3130

3231

3332
class UnixHTTPConnection(httplib.HTTPConnection, object):

docker/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "2.6.0"
1+
version = "2.6.1"
22
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

docs/change-log.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
Change log
22
==========
33

4+
2.6.1
5+
-----
6+
7+
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/40?closed=1)
8+
9+
### Bugfixes
10+
11+
* Fixed a bug on Python 3 installations preventing the use of the `attach` and
12+
`exec_run` methods.
13+
14+
415
2.6.0
516
-----
617

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

920
### Features
1021

0 commit comments

Comments
 (0)