Subject: Re: [PATCH] Send internal packet priority

Re: [PATCH] Send internal packet priority

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 8 Sep 2011 14:29:19 +0200 (CEST)

On Tue, 6 Sep 2011, liuzl wrote:

> When sending a internal packet(eg:window adjust packet),
> even we may blocked in the last call, try to send it normally

Isn't the bug in the channel_read function "only" that the adjust window
functionality breaks when transport_recv() is called until EGAIN in subsequent
calls?

I suggest the attached patch instead of yours. It makes sure that the
window_adjust function is called again immediately if it was that function
that caused the previous EAGAIN return code.

-- 
  / daniel.haxx.se


_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2011-09-08