Skip to content

Commit

Permalink
Merge pull request #2886 from Aposhian/fix-disable-buffering
Browse files Browse the repository at this point in the history
fix(transport): remove disable_buffering option
  • Loading branch information
ulyssessouza authored Sep 1, 2021
2 parents 3c3aa69 + f9b8558 commit dbb28a5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docker/transport/unixconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def __init__(self, base_url, unix_socket, timeout=60):
self.base_url = base_url
self.unix_socket = unix_socket
self.timeout = timeout
self.disable_buffering = False

def connect(self):
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
Expand All @@ -33,13 +32,8 @@ def connect(self):

def putheader(self, header, *values):
super().putheader(header, *values)
if header == 'Connection' and 'Upgrade' in values:
self.disable_buffering = True

def response_class(self, sock, *args, **kwargs):
if self.disable_buffering:
kwargs['disable_buffering'] = True

return httplib.HTTPResponse(sock, *args, **kwargs)


Expand Down

0 comments on commit dbb28a5

Please sign in to comment.