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
and VC on windows. i'm stuck....
-------------------------------
Voltage Controlled
-------------------------------
On Fri, May 15, 2009 at 2:12 PM, Roman Kubiak <kubiak.roman_at_gmail.com> wrote:
> i checked the same code EOF detection works on linux
> ofcourse the gettimeofday() was just an idea, please don't treat this as a patch
> i'm not worthy to contribute really :)
>
> i'm still looking into this, just need to enable the debug/trace
> -------------------------------
> Voltage Controlled
> -------------------------------
>
>
>
>
>
> On Fri, May 15, 2009 at 8:53 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
>> On Fri, 15 May 2009, Roman Kubiak wrote:
>>
>>> 1. i can't enable debug with libssh2, what is the proper way to do that
>>> apart from setting #define LIBSSH2DEBUG (dunno where to set it properly, i
>>> tried a few places) and adding the debug callback
>>
>> Build libssh2 with LIBSSH2DEBUG defined everywhere. Then you use
>> libssh2_trace() in your app to ask for trace logging.
>>
>>> 2. i can't detect EOF on the channel on win32, it never returns true,
>>> i connect one tunnel end to SQUID, perhaps
>>> there is something wrong there, i mean the proxy doesn't close the
>>> connection, perhaps it's a matter of headers or something (just thinking out
>>> loud here)
>>
>> Can you produce a simple example that repeats this? You know if it works on
>> non-win32?
>>
>>> i think you need to look at gettimeofday() in misc.c win32 doesn't have that
>>> i wrote a small replacement:
>>
>> 1 - please post patches done with diff -u
>>
>> 2 - the replacement is only necessary for win32 so your full-second version
>> will only mess up. But ideally we should check for gettimeofday() in
>> configure and just not define its presence in a hardcoded win32-version of
>> libssh2_config.h
>>
>> --
>>
>> / 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_at_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_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-05-16