Subject: Re: Re: Is it possible to do session.startup and session.userauth_password in non blocking manner?

Re: Re: Is it possible to do session.startup and session.userauth_password in non blocking manner?

From: aalok sood <aalok_at_ideadevice.com>
Date: Sun, 1 Jul 2012 01:46:56 +0530

Hi Daniel

Thanks a lot for replaying.

The issue was with the python bindings I was using. It was not compatible
with non blocking mode.
I have fixed that and would push it for merge.

I am glad to report that all libssh2 functions I used follow the non
blocking model.

I must thank you all for providing such awesome software.

Regards
Aalok
On Fri, Jun 29, 2012 at 3:30 PM, <libssh2-devel-request_at_cool.haxx.se> wrote:

> Send libssh2-devel mailing list submissions to
> libssh2-devel_at_cool.haxx.se
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
> or, via email, send a message with subject or body 'help' to
> libssh2-devel-request_at_cool.haxx.se
>
> You can reach the person managing the list at
> libssh2-devel-owner_at_cool.haxx.se
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of libssh2-devel digest..."
>
>
> Today's Topics:
>
> 1. Re: Is it possible to do session.startup and
> session.userauth_password in non blocking manner? (aalok sood)
> 2. Re: Is it possible to do session.startup and
> session.userauth_password in non blocking manner? (Daniel Stenberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 29 Jun 2012 02:22:54 +0530
> From: aalok sood <aalok_at_ideadevice.com>
> To: libssh2-devel_at_cool.haxx.se
> Subject: Re: Is it possible to do session.startup and
> session.userauth_password in non blocking manner?
> Message-ID:
> <
> CAG+SKy6Zs6bv5OezreNkpyt--L53G4QOgAJK76wiY1ofDPobMg_at_mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello everyone
>
> My apologies for sending python binding's snippet.
>
> How do I make libssh2_session_startup(), libssh2_userauth_password() behave
> in a non-blocking manner?
>
> Thanks
> Aalok
>
> On Thu, Jun 28, 2012 at 3:08 AM, aalok sood <aalok_at_ideadevice.com> wrote:
>
> > Hello
> >
> > I have a nicely working ssh multiplexer using libssh2 in non blocking
> > mode. The non blocking mode works for read on the channel but I see that
> > startup and userauth_password methods of libssh2 session object are
> blocking
> >
> > Link to my code snippet:
> > https://gist.github.com/3006745
> >
> > Am I missing something here?
> >
> > Thanks & Regards
> > Aalok Sood
> >
> >
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/libssh2-devel/attachments/20120629/30b0ca59/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 28 Jun 2012 23:38:48 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libssh2 development <libssh2-devel_at_cool.haxx.se>
> Subject: Re: Is it possible to do session.startup and
> session.userauth_password in non blocking manner?
> Message-ID: <alpine.DEB.2.00.1206282337290.19812_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Fri, 29 Jun 2012, aalok sood wrote:
>
> > How do I make libssh2_session_startup(), libssh2_userauth_password()
> behave
> > in a non-blocking manner?
>
> Set mode non-blocking and then call the functions.
>
> If they're not non-blocking then (when using the latest libssh2 version),
> there are bugs in there that we need to fix.
>
> Can you provide source code examples that reproduce problems for us?
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> _______________________________________________
> libssh2-devel mailing list
> libssh2-devel_at_cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>
> End of libssh2-devel Digest, Vol 37, Issue 22
> *********************************************
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-06-30