mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
"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:
parent
8289f1d1d9
commit
d37f0a6555
@ -179,4 +179,3 @@ class Response(object):
|
||||
self.send_headers()
|
||||
if self.chunked:
|
||||
util.write_chunk(self.sock, "")
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user