before i do that the first thing i should've asked is are the channels session thread safe
i mean i set up one session and many channels, each channel gets it's own thread so if libssh2 is not thread aware i need to do locking so that only one thread has access to one channel at a time, am i right ? ------------------------------- Voltage Controlled ------------------------------- On Tue, May 19, 2009 at 12:10 PM, Daniel Stenberg <dan...@haxx.se> wrote: > On Sat, 16 May 2009, Roman Kubiak wrote: > >> I get an assertion from libssh2, almost all the time when i try to close a >> channel that i don't want to use anymore: >> >> /* if remainbuf turns negative we have a bad internal error */ >> assert(remainbuf >= 0); >> >> this happens on linux and win32, don't know what can be causing this. >> >> the code i use is here: >> http://edoapp.googlecode.com/svn/trunk/fujitsu/Pipe/ i need premake to >> build on linux > > Please make us a small reproducable app that we can use to debug this. > >> and VC on windows. i'm stuck.... > > No you're not. Fire up your debugger and get to work. > > -- > > / daniel.haxx.se > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > libssh2-devel mailing list > libssh2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libssh2-devel > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel