python: set TCP_NODELAY option

This commit is contained in:
Tatsuhiro Tsujikawa 2012-08-24 21:22:43 +09:00
parent 743b2e5584
commit 45c07bec4d
1 changed files with 2 additions and 0 deletions

View File

@ -1279,6 +1279,8 @@ try:
self._response_headers, data_prd)
def handle(self):
self.request.setsockopt(socket.IPPROTO_TCP,
socket.TCP_NODELAY, True)
# TODO We need to call handshake manually because 3.3.0b2
# crashes if do_handshake_on_connect=True
sock = self.server.ctx.wrap_socket(self.request, server_side=True,