This commit is contained in:
Kovid Goyal 2015-05-21 14:31:48 +05:30
parent c8f1d11e80
commit ae9021d279

View File

@ -121,3 +121,4 @@ class Corked(object):
def __exit__(self, *args):
if self.sock is not None:
self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_CORK, 0)
self.sock.send(b'') # Ensure that uncorking occurs