Displaying 8 results from an estimated 8 matches for "max_req".
Did you mean:
map_req
2002 Jan 03
3
[PATCH] Improving sftp client performance
...nt fd_out)
{
@@ -674,12 +721,15 @@
int pflag)
{
int local_fd;
- u_int expected_id, handle_len, mode, type, id;
+ u_int handle_len, mode, type, id;
u_int64_t offset;
char *handle;
Buffer msg;
Attrib junk, *a;
int status;
+ struct request req[REQUEST_QUEUE_SIZE];
+ int num_req = 0, max_req = 1, reply;
+ int write_error = 0, read_error = 0, write_errno;
a = do_stat(fd_in, fd_out, remote_path, 0);
if (a == NULL)
@@ -726,87 +776,103 @@
/* Read from remote and write to local */
offset = 0;
- for(;;) {
- u_int len;
+ while (num_req > 0 || max_req > 0) {
char *data;
+...
2003 Jun 11
2
[PATCH] Fix typos, OpenBSD + Portable
...=================
RCS file: /cvs/src/usr.bin/ssh/sftp-client.c,v
retrieving revision 1.43
diff -u -r1.43 sftp-client.c
--- sftp-client.c 2003/04/08 20:21:29 1.43
+++ sftp-client.c 2003/06/11 12:29:21
@@ -904,7 +904,7 @@
if (len < buflen)
buflen = MAX(MIN_READ_SIZE, len);
}
- if (max_req > 0) { /* max_req = 0 iff EOF received */
+ if (max_req > 0) { /* max_req = 0 if EOF received */
if (size > 0 && offset > size) {
/* Only one request at a time
* after the expected EOF */
Index: sshlogin.c
=====================================================...
2002 Jan 06
3
sftp/scp performance testing
Folks, I've noticed poor performance using sftp. If anyone has any
advice on how to improve performance, I'd like to hear it. Test simply
involved transferring a single 143MB MP3 file using defaults for all the
program configs. The opensshd 3.0.2p1 server is used in all tests.
Software:
openssh suite 3.0.2p1
psftp (putty sftp client) latest dev snapshot
pscp (putty scp client) latest
2002 Nov 05
2
[PATCH] fix sftp to preserve permissions and uid/gid
...-
status = get_status(conn->fd_in, id);
if (status != SSH2_FX_OK)
! error("Couldn't symlink file \"%s\" to \"%s\": %s", oldpath,
newpath, fx2txt(status));
return(status);
***************
*** 746,752 ****
int local_fd, status, num_req, max_req, write_error;
int read_error, write_errno;
u_int64_t offset, size;
! u_int handle_len, mode, type, id, buflen;
struct request {
u_int id;
u_int len;
--- 796,802 ----
int local_fd, status, num_req, max_req, write_error;
int read_error, write_errno;
u_int64_t offset, size;...
2004 Mar 03
1
BUG: SFTP (openssh-3.8p1) upload doubles "Uploading..." comment
...sftp-client.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/sftp-client.c,v
retrieving revision 1.46
diff -u -r1.46 sftp-client.c
--- sftp-client.c 17 Feb 2004 05:39:51 -0000 1.46
+++ sftp-client.c 3 Mar 2004 03:05:36 -0000
@@ -805,13 +805,8 @@
max_req = 1;
progress_counter = 0;
- if (showprogress) {
- if (size)
- start_progress_meter(remote_path, size,
- &progress_counter);
- else
- printf("Fetching %s to %s\n", remote_path, local_path);
- }
+ if (showprogress && size != 0)
+ start_progress_meter(remote_pat...
2013 Jan 12
1
[Bug 2021] sftp resume support (using size and offset)
https://bugzilla.mindrot.org/show_bug.cgi?id=2021
--- Comment #10 from Loganaden Velvindron <loganaden at gmail.com> ---
ping :-) ?
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
2003 Oct 30
2
sftp client reget reput
...rom remote and write to local */
write_error = read_error = write_errno = num_req = offset = 0;
+
+#ifdef REGET
+ if (rflag) {
+ long posn;
+ posn = lseek(local_fd, 0L, SEEK_END);
+ debug3("reget: restarting at file position %ld\n", posn);
+ offset = (u_int64_t)posn;
+ }
+#endif
+
max_req = 1;
progress_counter = 0;
@@ -969,8 +990,13 @@
}
int
+#ifdef REGET
+do_upload(struct sftp_conn *conn, char *local_path, char *remote_path,
+ int pflag, int rflag)
+#else
do_upload(struct sftp_conn *conn, char *local_path, char *remote_path,
int pflag)
+#endif
{
int local_fd, st...
2013 Jun 19
9
[Bug 2021] sftp resume support (using size and offset)
https://bugzilla.mindrot.org/show_bug.cgi?id=2021
Loganaden Velvindron <loganaden at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2199|0 |1
is obsolete| |
--- Comment #12 from Loganaden Velvindron