Bugs item #1940276, was opened at 2008-04-11 17:17
Message generated for change (Comment added) made by bagder
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1940276&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Daniel Stenberg (bagder)
Summary: Endlosloop in libssh2_sftp_close_handle

Initial Comment:
At a customer site we use libssh2 via libcurl.
When trying to close a channel, we now and then come across (trace)

14:30:01.325284 libssh2_sftp_close_handle(0x8116dd0, 0x8114d10, 0xffecb748, 
0x805f44b, 0x80f4460) = -37
14:30:01.325453 libssh2_sftp_close_handle(0x8116dd0, 0x8114d10, 0xffecb748, 
0x805f44b, 0x80f4460) = -37
and so on
this seeems to be (in sftp.c)

    while (sftp->handles) {
        libssh2_sftp_close_handle(sftp->handles);
    }
and in libssh2_sftp_close_handle

        rc = libssh2_channel_write_ex(channel, 0,
                                      (char *) handle->close_packet,
                                      packet_len);
        if (rc == PACKET_EAGAIN) {
            return PACKET_EAGAIN;
        }

We tried to stop this with alarm and sigsetjmp,
but it's still occuring.
Our current workaround is an external killscript,
but that's less than optimal.

Wolfgang Riedel

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2009-01-31 23:51

Message:
Does this still happen with 1.0? If so, can you produce a full source
snippet that reproduces this problem?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1940276&group_id=125852

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to