1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

Cleanups, that do seem to have boosted SFTP download performance up to 300% in

some tests:

  * cut off "_ex" from several internal function names

  * corrected some log outputs

  * simplified libssh2_channel_read_ex() and made it much faster in the process

  * cut out {{{ and }}} comments that were incorrect anyway

  * fixed sftp_packet_ask() to return the correct packet by using memcmp() and
    not strncmp()

  * fixed mkdir()'s wait for packet to use the correct request_id - it
    semi-worked previously because strncmp() in sftp_packet_ask() made it
    match far too easily.

  * took away the polling functionality from sftp_packet_ask() since it wasn't
    used
This commit is contained in:
Daniel Stenberg
2009-03-13 22:15:27 +00:00
parent d89782d99f
commit a52f5d3b7e
10 changed files with 377 additions and 397 deletions

View File

@@ -202,13 +202,13 @@ _libssh2_debug(LIBSSH2_SESSION * session, int context, const char *format, ...)
static const char *const contexts[9] = {
"Unknown",
"Transport",
"Key Exchange",
"Key Ex",
"Userauth",
"Connection",
"scp",
"SFTP Subsystem",
"Conn",
"SCP",
"SFTP",
"Failure Event",
"Publickey Subsystem",
"Publickey",
};
if (context < 1 || context > 8) {