search for: remove_request

Displaying 2 results from an estimated 2 matches for "remove_request".

2002 Jan 03
3
[PATCH] Improving sftp client performance
...id = 1; @@ -215,6 +224,44 @@ return(a); } +static int +find_request(struct request *rq, int num, u_int id) +{ + int i; + + for (i = 0; i < num; ++i) { + if (rq[i].id == id) + break; + } + + if (i == num) + fatal("Request ID mismatch (%d)", id); + + return i; +} + +static void +remove_request(struct request *rq, int *num, int i) +{ + memmove(rq + i, rq + i + 1, (*num - i - 1) * sizeof(struct request)); + --*num; +} + +static void +send_request(int fd, const char *handle, u_int handle_len, int type, + const struct request *rq, Buffer *m) +{ + buffer_clear(m); + buffer_put_char...
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