Sleeping

2009-04-28 Thread double
Hello, All demons call "sleep( 1 second )" after "close( socket )". Is there a ssh-specific reason for doing so? Thanks Marcus -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reil

Re: Sleeping

2009-04-28 Thread Daniel Stenberg
On Tue, 28 Apr 2009, double wrote: > All demons call "sleep( 1 second )" after "close( socket )". Is there a > ssh-specific reason for doing so? "All demons" really? And no, I can't see how it can be ssh-specific. -- / daniel.haxx.se

Re: Sleeping

2009-04-28 Thread double
Daniel Stenberg schrieb: All demons call "sleep( 1 second )" after "close( socket )". Is there a ssh-specific reason for doing so? "All demons" really? And no, I can't see how it can be ssh-specific. Hi Daniel, Thanks for your answer! Very sorry, two errors. The demos (not demons) ca

BLOCK_ADJUST

2009-04-28 Thread double
Hello, I am re-writing my code using non-blocking sockets. The demos check the returncode for "LIBSSH2_ERROR_EAGAIN", but most of the libssh2 functions use the "BLOCK_ADJUST()" macro. Is it still necessary to check the returncode for EAGAIN? If yes, is there a list of dangerous functions? Thank

Re: Sleeping

2009-04-28 Thread Daniel Stenberg
On Tue, 28 Apr 2009, double wrote: > The demos (not demons) call "sleep(1 second)" right before calling > "close(socket)". This means, I can skip this sleeping? Oh. Yes, skip them. I also removed the sleep calls from all the demo sources right now. -- / daniel.haxx.se ---

Re: BLOCK_ADJUST

2009-04-28 Thread Daniel Stenberg
On Tue, 28 Apr 2009, double wrote: > I am re-writing my code using non-blocking sockets. The demos check the > returncode for "LIBSSH2_ERROR_EAGAIN", but most of the libssh2 functions use > the "BLOCK_ADJUST()" macro. Let's not mix apples and oranges here. First: LIBSSH2_ERROR_EAGAIN is a retu

Re: BLOCK_ADJUST

2009-04-28 Thread double
Daniel Stenberg schrieb: > First: LIBSSH2_ERROR_EAGAIN is a return code lots of libssh2 functions > can > return when used in non-blocking mode. > ... > But yes, the list of functions that may return EAGAIN (or in some cases NULL > due to an EAGAIN situation) is this: > Hi Daniel, Thanks ag

Re: BLOCK_ADJUST

2009-04-28 Thread Daniel Stenberg
On Tue, 28 Apr 2009, double wrote: > Thanks again for your detailed explanation. For functions like > "libssh2_channel_open_ex()" or "libssh2_sftp_open_ex()" I must check > "libssh2_session_last_error()" in order to get EAGAIN? Yes. If they return NULL you must use libssh2_session_last_error()

Re: BLOCK_ADJUST

2009-04-28 Thread double
Daniel Stenberg schrieb: > Yes. If they return NULL you must use libssh2_session_last_error() to > check > the reason for it. > Thank you very much for your help! Marcus -- Register Now & Save for Velocity, the Web P

[ libssh2-Bugs-2659057 ] segfault when reading in DSA private key on Ubuntu 64 bit

2009-04-28 Thread SourceForge.net
Bugs item #2659057, was opened at 2009-03-04 00:27 Message generated for change (Settings changed) made by bagder You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2659057&group_id=125852 Please note that this message will contain a full copy of the comment

[ libssh2-Bugs-1860776 ] non-blocking, normal and stderr stream read bug

2009-04-28 Thread SourceForge.net
Bugs item #1860776, was opened at 2007-12-30 06:03 Message generated for change (Comment added) made by bagder You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1860776&group_id=125852 Please note that this message will contain a full copy of the comment th

[ libssh2-Bugs-1918953 ] SSH disconnect detection

2009-04-28 Thread SourceForge.net
Bugs item #1918953, was opened at 2008-03-19 00:50 Message generated for change (Comment added) made by bagder You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1918953&group_id=125852 Please note that this message will contain a full copy of the comment th