diff --git a/lib/net/sftp/operations/download.rb b/lib/net/sftp/operations/download.rb index 54965ec..d4c27b6 100644 --- a/lib/net/sftp/operations/download.rb +++ b/lib/net/sftp/operations/download.rb @@ -218,7 +218,7 @@ def stack; @stack; end def progress; @progress; end # The default read size. - DEFAULT_READ_SIZE = 32_000 + DEFAULT_READ_SIZE = 32_768 # The number of bytes to read at a time from remote files. def read_size diff --git a/lib/net/sftp/operations/upload.rb b/lib/net/sftp/operations/upload.rb index 1e98dbf..fab1893 100644 --- a/lib/net/sftp/operations/upload.rb +++ b/lib/net/sftp/operations/upload.rb @@ -230,7 +230,7 @@ def progress; @progress; end LiveFile = Struct.new(:local, :remote, :io, :size, :handle) # The default # of bytes to read from disk at a time. - DEFAULT_READ_SIZE = 32_000 + DEFAULT_READ_SIZE = 32_768 # The number of readers to use when uploading a single file. SINGLE_FILE_READERS = 2