Subject: Re: [libssh2] #219: libssh2_channel_forward_listen_ex freezes the program!

Re: [libssh2] #219: libssh2_channel_forward_listen_ex freezes the program!

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Sun, 19 Jun 2011 22:07:39 -0000

#219: libssh2_channel_forward_listen_ex freezes the program!
-----------------------+----------------------------------------------------
  Reporter: fingster | Owner: bagder
      Type: defect | Status: closed
  Priority: high | Milestone: 1.2.9
 Component: API | Version: 1.2.8
Resolution: invalid | Keywords: port forward
    Blocks: | Blocked By:
-----------------------+----------------------------------------------------

Comment (by fingster):

 When I put
 {{{
 libssh2_session_set_blocking(session, 0);
 }}}
 before the cited example code, channel gets nothing but NULL. And printf
 shows that "Remote forwding port: 0".
 If I put
 {{{
 libssh2_session_set_blocking(session, 0);
 }}}
 after the cited example code, the program freezes at
 libssh2_channel_forward_listen_ex and never returns. Nothing outputs.

 how to use libssh2_channel_forward_listen_ex? Any example?
 Thank you!

-- 
Ticket URL: <http://trac.libssh2.org/ticket/219#comment:5>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-06-20