Subject: libssh2_session_startup() will enable non-blocking

libssh2_session_startup() will enable non-blocking

From: Daniel Stenberg <>
Date: Mon, 23 Mar 2009 12:00:30 +0100 (CET)


Okay to proceed a bit on my plan to make all internals use non-blocking

* have the libssh2_session_set_blocking() function decide blocking or
   non-blocking API behavior,

* start with making making libssh2_session_startup() simply force the socket
   to non-blocking state unconditionally and all the following libssh2 function
   calls will then assume that it already is non-blocking on the socket layer.

* libssh2_session_free() will then set back the socket to the same blocking
   state as it was before libssh2_session_startup() was called.

This shouldn't be a problem to an app since after having handed over the
socket to libssh2 I figure the lib in question should have the right to deal
with it this way.

Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial.
libssh2-devel mailing list
Received on 2009-03-23