break;
default:
+ SILC_LOG_DEBUG(("Unknown request type %d", req->type));
break;
}
void *context)
{
SilcSFTPClient sftp = context;
- unsigned char inbuf[30720];
+ unsigned char inbuf[65536];
SilcBufferStruct packet;
int ret;
return;
}
+ SILC_LOG_DEBUG(("Read %d bytes", ret));
+
/* Now process the SFTP packet */
silc_buffer_set(&packet, inbuf, ret);
silc_sftp_client_receive_process(context, &packet);
SILC_LOG_DEBUG(("Starting SFTP client"));
+ if (!schedule)
+ schedule = silc_schedule_get_global();
+
if (!stream)
return NULL;
/* Parse the packet */
type = silc_sftp_packet_decode(buffer, &payload, &payload_len);
- if (!type)
+ if (type <= 0)
return;
silc_buffer_set(&buf, payload, payload_len);