python: set TCP_NODELAY option
This commit is contained in:
parent
743b2e5584
commit
45c07bec4d
|
@ -1279,6 +1279,8 @@ try:
|
||||||
self._response_headers, data_prd)
|
self._response_headers, data_prd)
|
||||||
|
|
||||||
def handle(self):
|
def handle(self):
|
||||||
|
self.request.setsockopt(socket.IPPROTO_TCP,
|
||||||
|
socket.TCP_NODELAY, True)
|
||||||
# TODO We need to call handshake manually because 3.3.0b2
|
# TODO We need to call handshake manually because 3.3.0b2
|
||||||
# crashes if do_handshake_on_connect=True
|
# crashes if do_handshake_on_connect=True
|
||||||
sock = self.server.ctx.wrap_socket(self.request, server_side=True,
|
sock = self.server.ctx.wrap_socket(self.request, server_side=True,
|
||||||
|
|
Loading…
Reference in New Issue