Re: [Python-Dev] http.client Nagle/delayed-ack optimization

2012-12-20 Thread Kristján Valur Jónsson
://en.wikipedia.org/wiki/TCP_delayed_acknowledgment K > -Original Message- > From: Python-Dev [mailto:python-dev- > bounces+kristjan=ccpgames@python.org] On Behalf Of Antoine Pitrou > Sent: 14. desember 2012 19:27 > To: python-dev@python.org > Subject: Re: [Python-Dev]

Re: [Python-Dev] http.client Nagle/delayed-ack optimization

2012-12-14 Thread Antoine Pitrou
On Sat, 15 Dec 2012 06:17:19 +1100 Ben Leslie wrote: > The http.client HTTPConnection._send_output method has an optimization for > avoiding bad interactions between delayed-ack and the Nagle algorithm: > > http://hg.python.org/cpython/file/f32f67d26035/Lib/http/client.py#l884 > > Unfortunately

[Python-Dev] http.client Nagle/delayed-ack optimization

2012-12-14 Thread Ben Leslie
The http.client HTTPConnection._send_output method has an optimization for avoiding bad interactions between delayed-ack and the Nagle algorithm: http://hg.python.org/cpython/file/f32f67d26035/Lib/http/client.py#l884 Unfortunately this interacts rather poorly if the case where the message_body is