diff --git a/docker/utils/socket.py b/docker/utils/socket.py index 3c31a98c5..3f3a6fc63 100644 --- a/docker/utils/socket.py +++ b/docker/utils/socket.py @@ -37,8 +37,7 @@ def read(socket, n=4096): select.select([socket], [], []) else: poll = select.poll() - poll.register(socket) - poll.poll() + poll.register(socket, select.POLLIN | select.POLLPRI) try: if hasattr(socket, 'recv'):