Ticket #48 (closed defect: wontfix)

Opened 10 years ago

Last modified 7 years ago

problems with remote forwarding

Reported by: evaldes Owned by:
Priority: normal Milestone:
Component: Version:
Keywords: Cc: evaldes
Blocked By: Blocks:

Description

I have attemped to do remote forwarding two different ways:

libssh2_poll example

listener = libssh2_channel_forward_listen(session,3306);

retval = 0;

while (retval == 0)
{

ssh_file_descriptor.type = LIBSSH2_POLLFD_LISTENER;
ssh_file_descriptor.fd.listener = listener;
ssh_file_descriptor.events = LIBSSH2_POLLFD_POLLIN;

retval = libssh2_poll(&ssh_file_descriptor,1,500);

printf("retval - %d, revents - %d\n",retval,ssh_file_descriptor.revents);

}

Quick and dirty libssh_channel_forward accept

listener = libssh2_channel_forward_listen_ex(session,NULL,3306,NULL,16);

channel = libssh2_channel_forward_accept(listener);

Both methods successfully set up a listening socket on the remote box. In the first example, when a connection attempt is made, the last call to libssh2_poll never returns. In the second example, the call to libssh2_channel_forward_accept never returns.

Change History

comment:1 Changed 7 years ago by bagder

  • Resolution set to wontfix
  • Status changed from new to closed

libssh2_poll() is deprecated. We don't work on fixing problems with it! If you can repeat a problem without it, we'll be interested. Please file a new report then!

Note: See TracTickets for help on using tickets.