Subject: Re: send/recv callbacks (was Re: writing to channel limited to 2 Mb?)

Re: send/recv callbacks (was Re: writing to channel limited to 2 Mb?)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 11 Aug 2011 22:57:06 +0200 (CEST)

On Thu, 11 Aug 2011, Henrik Nordström wrote:

> I think a simpler way is to make all SSH send/recv go via session->send/recv
> set by default to _libssh2_send/recv
>
> Additionally agent.c is also using _libssh2_send/recv with a slightly
> different usage pattern, doing I/O on the agent fd and not the libssh2
> session fd.
>
> Reworked patch attached. Can also be found in my github repository where
> various other small changes also resides while I am reading the code.

I think it looks really good. Is there anyone around with (different) opinions
on Henrik's approach?

-- 
  / daniel.haxx.se

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-08-11