Hi Pierre, bsd_poll is the poll syscall emulation for oses (like windows <= XP) which lacks native poll function. This function is used internally by everything that is nonblocking (inc channel_poll). We think the bug in this function caused your blocking behaviour. Could you tell us which platform you're using ? (windows version, compiler, ...). I also think that while your workarounds are mostly working, they are not portable and not really an alternative to a bugfree libssh.
kr, Aris Pierre Lewis a écrit : > On Tue, Jun 22, 2010 at 02:57:50PM +0200, Andreas Schneider wrote: > >> could you please test with >> >> http://www.libssh.org/files/test/libssh-0.4.4.92.tar.gz >> >> I've fixed more bugs on Windows. It's possible that this doesn't fix the >> problem at all. Which windows version do you use? > > The changes between 0.4.4.90 and 0.4.4.92 seem to be only in > libssh/poll.c. I don't use any *_poll() function explicitly, > except channel_poll(). Does channel_poll() call, indirectly, > bsd_poll()? > > Anyway, I'll test with it, we'll see. > > Cheers, > Pierre > >
