From 8c086f095a2f3be0f71829af9037d99c79604a37 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 30 Apr 2011 06:56:47 +0000 Subject: lower header buffer sizes for synchronous models HTTP headers are usually smaller than 4K, so 16K was way too much for most users and often caused unnecessary GC runs. EventMachine and Coolio models can all share the same initial read buffer, so it's less urgent that they get this lowered for now... --- lib/rainbows/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/client.rb') diff --git a/lib/rainbows/client.rb b/lib/rainbows/client.rb index 9b65cea..7387c44 100644 --- a/lib/rainbows/client.rb +++ b/lib/rainbows/client.rb @@ -16,7 +16,7 @@ class Rainbows::Client < Kgio::Socket def timed_read(buf) expire = nil begin - case rv = kgio_tryread(16384, buf) + case rv = kgio_tryread(0x1000, buf) when :wait_readable return if expire && expire < Time.now expire ||= read_expire -- cgit v1.2.3-24-ge0c7