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
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
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
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
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
---
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
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
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()
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
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
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
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
12 matches
Mail list logo