Subject: libssh2_channel_forward_accept never returns!

libssh2_channel_forward_accept never returns!

From: Otavio Augusto <otavioarj_at_gmail.com>
Date: Sat, 4 Oct 2014 03:34:52 -0300

Hi fellows,

Today I started using libssh2 API, mainly to use tcp forward. So the first
thing I did was compiling the
tcpip-forward.c example.

All goes well until the execution stop at "Waiting for remote connection"
print.. right there:

fprintf(stderr, "Waiting for remote connection\n");
    channel = libssh2_channel_forward_accept(listener);

    if (!channel) {
        fprintf(stderr, "Could not accept connection!\n"

So libssh2_channel_forward_accept nevers return .... the execution is stuk
there forever.

To confirm that the problem isn't the server, I successful did tcp forward
using putty on the same server.

Any help on this issue will be extremely appreciated :)

Btw: I'm using libssh2 on windows. I'm using libssh2.a
from perl-5.14.2.1-32bit-windows-master, and compiled with mingw32-gcc.exe.

-- 
Otavio Augusto.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-10-04