"Yep. Delete it" . fix issue #82. opening a ticket with a not for this

change so if someone figures how to use TCP_CORK or TCP_NOPUSH we can
track it.
This commit is contained in:
benoitc 2010-08-12 21:22:09 +02:00
parent 8289f1d1d9
commit d37f0a6555
2 changed files with 0 additions and 5 deletions

View File

@ -179,4 +179,3 @@ class Response(object):
self.send_headers()
if self.chunked:
util.write_chunk(self.sock, "")

View File

@ -58,10 +58,6 @@ class TCPSocket(BaseSocket):
return "http://%s:%d" % self.sock.getsockname()
def set_options(self, sock, bound=False):
if hasattr(socket, "TCP_CORK"):
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_CORK, 1)
elif hasattr(socket, "TCP_NOPUSH"):
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NOPUSH, 1)
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
return super(TCPSocket, self).set_options(sock, bound=bound)