]> Sergey Matveev's repositories - public-inbox.git/commit
http: cork chunked responses for small savings
authorEric Wong <e@80x24.org>
Fri, 24 Jun 2016 23:40:03 +0000 (23:40 +0000)
committerEric Wong <e@80x24.org>
Sat, 25 Jun 2016 00:19:37 +0000 (00:19 +0000)
commita2295236b67ae5bffd346a0b9590748db48ccd4e
tree491c99d7855c57b35c07f36fd04b1b9171598a5a
parent659b836f531caf75ec2ef6d64117386e655909e5
http: cork chunked responses for small savings

This only affects Linux users with MSG_MORE support.

We can avoid extra TCP overhead for sub-optimal chunk sizes
by using MSG_MORE even with chunk trailers under Linux.

This breaks real-time apps which require <= 200ms latency for
streaming small packets (e.g. implementing "tail -F"), but the
public-inbox WWW code does not (and will never) do such things.
lib/PublicInbox/HTTP.pm