[BACK]Return to sftp-client.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sftp-client.c between version 1.166 and 1.167

version 1.166, 2022/12/16 03:40:03 version 1.167, 2023/01/11 05:36:50
Line 546 
Line 546 
   
                 /* If the caller did not specify, find a good value */                  /* If the caller did not specify, find a good value */
                 if (transfer_buflen == 0) {                  if (transfer_buflen == 0) {
                         ret->download_buflen = limits.read_length;                          ret->download_buflen = MINIMUM(limits.read_length,
                         ret->upload_buflen = limits.write_length;                              SFTP_MAX_MSG_LENGTH - 1024);
                         debug("Using server download size %u", ret->download_buflen);                          ret->upload_buflen = MINIMUM(limits.write_length,
                         debug("Using server upload size %u", ret->upload_buflen);                              SFTP_MAX_MSG_LENGTH - 1024);
                           debug3("server upload/download buffer sizes "
                               "%llu / %llu; using %u / %u",
                               (unsigned long long)limits.write_length,
                               (unsigned long long)limits.read_length,
                               ret->upload_buflen, ret->download_buflen);
                 }                  }
   
                 /* Use the server limit to scale down our value only */                  /* Use the server limit to scale down our value only */
                 if (num_requests == 0 && limits.open_handles) {                  if (num_requests == 0 && limits.open_handles) {
                         ret->num_requests =                          ret->num_requests =
                             MINIMUM(DEFAULT_NUM_REQUESTS, limits.open_handles);                              MINIMUM(DEFAULT_NUM_REQUESTS, limits.open_handles);
                         debug("Server handle limit %llu; using %u",                          debug3("server handle limit %llu; using %u",
                             (unsigned long long)limits.open_handles,                              (unsigned long long)limits.open_handles,
                             ret->num_requests);                              ret->num_requests);
                 }                  }

Legend:
Removed from v.1.166  
changed lines
  Added in v.1.167