=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/sftp-int.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- src/usr.bin/ssh/Attic/sftp-int.c 2002/02/05 00:00:46 1.42 +++ src/usr.bin/ssh/Attic/sftp-int.c 2002/02/12 12:32:27 1.43 @@ -26,7 +26,7 @@ /* XXX: recursive operations */ #include "includes.h" -RCSID("$OpenBSD: sftp-int.c,v 1.42 2002/02/05 00:00:46 djm Exp $"); +RCSID("$OpenBSD: sftp-int.c,v 1.43 2002/02/12 12:32:27 djm Exp $"); #include @@ -47,6 +47,9 @@ /* Size of buffer used when copying files */ extern size_t copy_buffer_len; +/* Number of concurrent outstanding requests */ +extern int num_requests; + /* Version of server we are speaking to */ int version; @@ -387,7 +390,7 @@ } printf("Fetching %s to %s\n", g.gl_pathv[0], abs_dst); err = do_download(in, out, g.gl_pathv[0], abs_dst, pflag, - copy_buffer_len); + copy_buffer_len, num_requests); goto out; } @@ -412,7 +415,7 @@ printf("Fetching %s to %s\n", g.gl_pathv[i], abs_dst); if (do_download(in, out, g.gl_pathv[i], abs_dst, pflag, - copy_buffer_len) == -1) + copy_buffer_len, num_requests) == -1) err = -1; xfree(abs_dst); abs_dst = NULL; @@ -471,7 +474,7 @@ } printf("Uploading %s to %s\n", g.gl_pathv[0], abs_dst); err = do_upload(in, out, g.gl_pathv[0], abs_dst, pflag, - copy_buffer_len); + copy_buffer_len, num_requests); goto out; } @@ -496,7 +499,7 @@ printf("Uploading %s to %s\n", g.gl_pathv[i], abs_dst); if (do_upload(in, out, g.gl_pathv[i], abs_dst, pflag, - copy_buffer_len) == -1) + copy_buffer_len, num_requests) == -1) err = -1; }