Skip to content

Commit

Permalink
fix(transport): remove disable_buffering option
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Aposhian <[email protected]>
  • Loading branch information
Aposhian committed Aug 31, 2021
1 parent 3c3aa69 commit f9b8558
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 f9b8558

Please sign in to comment.