Subject: Re: [PATCH] Send internal packet priority

Re: [PATCH] Send internal packet priority

From: liuzl <>
Date: Tue, 13 Sep 2011 10:48:29 +0800

 [PATCH 2/2] window_size: explicit adjustments only

The patch make sftp_read() like this:

sftp_read() {

In the first call, it works fine. and we will blocking in the step 3 and
step 4.
In the second call, if the receiving_window is small, we will always return
in the step 1.

In the other hand, libssh2 have many kind of internal-paket and many levels
of API.

I think we can deal user-data and internal-data in different way.
Deal the internal-data in high priority.
If we are blocking in sending user-data,and we try to send internal-data
we can try to send the left half user-data, and then send the internal-data.
That is not a BAT_USE.

Received on 2011-09-13