lib/net/sftp/operations/write.rb in net-sftp-1.0.0 vs lib/net/sftp/operations/write.rb in net-sftp-1.0.1
- old
+ new
@@ -21,10 +21,10 @@
# Implements the +write+ operation. Handles, automatically, the looping
# necessary to write a large data set.
class Write < Abstract
# The maximum size of data that will be written at one time.
- CHUNK_SIZE = 64 * 1024
+ CHUNK_SIZE = 32 * 1024
# Perform the operation. Only CHUNK_SIZE portions of the +data+ parameter
# will be written at a time, with subsequent chunks being writteni
# automatically when prior chunks complete.
def perform( handle, data, offset=0 )