diff options
author | Eric Wong <e@80x24.org> | 2013-11-01 22:01:45 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-11-01 22:01:45 +0000 |
commit | 2260de380fc920f2d3108405ac3df5db7225a90e (patch) | |
tree | 2d4d9fd99a071ec5d273860f026db10588232b01 /lib/yahns/wbuf.rb | |
parent | 98b663091a919035ea85bc5273bfe4bd1aac2073 (diff) | |
download | yahns-2260de380fc920f2d3108405ac3df5db7225a90e.tar.gz |
This allows users to specify alternative temporary directories in case buffers get too large for one filesystem to handle or to give priority to some clients on certain ports.
Diffstat (limited to 'lib/yahns/wbuf.rb')
-rw-r--r-- | lib/yahns/wbuf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/wbuf.rb b/lib/yahns/wbuf.rb index 8b2b82e..e6039b7 100644 --- a/lib/yahns/wbuf.rb +++ b/lib/yahns/wbuf.rb @@ -6,8 +6,8 @@ require_relative 'wbuf_common' class Yahns::Wbuf # :nodoc: include Yahns::WbufCommon - def initialize(body, persist) - @tmpio = Yahns::TmpIO.new + def initialize(body, persist, tmpdir) + @tmpio = Yahns::TmpIO.new(tmpdir) @sf_offset = @sf_count = 0 @wbuf_persist = persist # whether or not we keep the connection alive @body = body |