diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-05 08:34:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-05 08:34:17 +0000 |
commit | 901e6061348490b3ea5d1e08be5b08c9601ad310 (patch) | |
tree | e0d64cde8caaabdcd04444c020bedaa85f7566f2 | |
parent | 70efa04bf48a3187e60d0f459b6a4202fb0885b2 (diff) | |
download | ruby_io_splice-901e6061348490b3ea5d1e08be5b08c9601ad310.tar.gz |
-rw-r--r-- | lib/io/splice.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/io/splice.rb b/lib/io/splice.rb index 3a72239..25ef653 100644 --- a/lib/io/splice.rb +++ b/lib/io/splice.rb @@ -8,10 +8,13 @@ class IO # the version of IO::Splice, currently 0.1.0 VERSION = '1.0.0' - # The maximum capacity of the pipe in bytes. + # The maximum default capacity of the pipe in bytes. # Under stock Linux, this is 65536 bytes as of 2.6.11, and 4096 before # We detect this at runtime as it is easy to recompile the kernel # and set a new value. + # Starting with Linux 2.6.35, pipe capacity will be tunable + # and this will only represent the default capacity of a + # newly-created pipe. PIPE_CAPA = begin rd, wr = IO.pipe buf = ' ' * PIPE_BUF |