search for: request_queue_size

Displaying 1 result from an estimated 1 matches for "request_queue_size".

2002 Jan 03
3
[PATCH] Improving sftp client performance
...0.2p1.orig/sftp-client.c Wed Jul 18 17:45:45 2001 +++ openssh-3.0.2p1/sftp-client.c Fri Jan 4 00:09:44 2002 @@ -45,6 +45,15 @@ /* How much data to read/write at at time during copies */ /* XXX: what should this be? */ #define COPY_SIZE 8192 +/* Maximum number of outstanding requests */ +#define REQUEST_QUEUE_SIZE 6 + +/* A read/write request */ +struct request { + u_int id; + u_int len; + u_int64_t offset; +}; /* Message ID */ static u_int msg_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) { +...