[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading multiple channels under the same session


Hi Alberto

On 29.01.19 20:58, Alberto Garcia wrote:

> Hi Till,
>
> I was finally able to adapt your code to make it work with mine. So
> now I get a channel per every socks connection i'm trying to do and it
> works fine and I can proxy through the session (created with -D). the
> problem that I'm facing is that the proxy doesn't work when used
> proxying the traffic from a web browser. I guess it must be because
> the code is not ready to be used when multiple connections are made at
> the same time (when loading a website JS will trigger a bunch of other
> connections).

Glad to hear!

>
> Did you test your code proxying your browser traffic? Does it work fine?

Yes, this was my test case actually.

>
> Why at cb_readsock do you ssh_set_blocking(session, 0);?

Honestly it's been a while since I worked on this code. At the moment
I'm programming some kind of SSH tunneling deamon, so I'm more on the
client side right now...

I will test my own code again though, and then I let you know. Not sure
about the ssh_set_blocking() ... Probably some testing which I forgot to
remove.

Cheers,
Till



Follow-Ups:
Re: Reading multiple channels under the same sessionAlberto Garcia <agarciaillera@xxxxxxxxx>
Re: Reading multiple channels under the same sessiong4-lisz@xxxxxxxxxxxx
References:
Reading multiple channels under the same sessionAlberto Garcia <agarciaillera@xxxxxxxxx>
Re: Reading multiple channels under the same sessiong4-lisz@xxxxxxxxxxxx
Re: Reading multiple channels under the same sessionAlberto Garcia <agarciaillera@xxxxxxxxx>
Re: Reading multiple channels under the same sessiong4-lisz@xxxxxxxxxxxx
Re: Reading multiple channels under the same sessionAlberto Garcia <agarciaillera@xxxxxxxxx>
Re: Reading multiple channels under the same sessionAlberto Garcia <agarciaillera@xxxxxxxxx>
Re: Reading multiple channels under the same sessiong4-lisz@xxxxxxxxxxxx
Re: Reading multiple channels under the same sessionAlberto Garcia <agarciaillera@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org