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

Re: opening multiply reverse tunnels in one session


On Friday 10 January 2014 13:26:28 Oleksandr Shneyder wrote:
> Hm, I think I got it. Is there an error in libssh-0.5.4 provided with
> debian wheezy?
> 
> I've found this in channels.c global_request:
> 
>   switch(session->global_req_state){
>     case SSH_CHANNEL_REQ_STATE_ACCEPTED:
>       ssh_log(session, SSH_LOG_PROTOCOL, "Global request %s
> success",request);
>       rc=SSH_OK;
>       break;
> ......................................
>   }
>   leave_function();
>   return rc;
> 
> It seems, that after executing of global_request
> session->global_req_state will not reseted to
> SSH_CHANNEL_REQ_STATE_NONE; Does it mean that we would not be able to
> execute global_request once again and that why I can execute
> ssh_forward_listen only once?
> 
> In code from git we have:
> 
>   switch(session->global_req_state){
>     case SSH_CHANNEL_REQ_STATE_ACCEPTED:
>       SSH_LOG(SSH_LOG_PROTOCOL, "Global request %s success",request);
>       rc=SSH_OK;
>       break;
> ........................................
>   }
>   session->global_req_state = SSH_CHANNEL_REQ_STATE_NONE;
> 
> I'll try to open more as one reverse tunnel with ssh version from GIT.

You should use libssh 0.6.0 we released on Wednesday :)


http://www.libssh.org/2014/01/08/libssh-0-6-0/


-- 
Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part.


Follow-Ups:
Re: opening multiply reverse tunnels in one sessionOleksandr Shneyder <o.shneyder@xxxxxxxxxxxxx>
References:
opening multiply reverse tunnels in one sessionOleksandr Shneyder <o.shneyder@xxxxxxxxxxxxx>
Re: opening multiply reverse tunnels in one sessionOleksandr Shneyder <o.shneyder@xxxxxxxxxxxxx>
Re: opening multiply reverse tunnels in one sessionOleksandr Shneyder <o.shneyder@xxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org