lib/rbbt/util/cmd.rb in rbbt-util-5.20.2 vs lib/rbbt/util/cmd.rb in rbbt-util-5.20.3
- old
+ new
@@ -173,10 +173,10 @@
if in_content.respond_to?(:read)
Thread.new do
begin
loop do
break if in_content.closed?
- block = in_content.read 1024
+ block = in_content.read Misc::BLOCK_SIZE
break if block.nil? or block.empty?
sin.write block
end
sin.close unless sin.closed?