Re: Infinite loop on multi-session handling
- Subject: Re: Infinite loop on multi-session handling
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 23 Aug 2012 09:50:12 +0200
- To: libssh@xxxxxxxxxx
On Monday 13 August 2012 10:51:03 you wrote:
> I'm currently experiencing an issue where a libssh function call to
> ssh_channel_request_exec() is getting stuck and taking up 100% CPU. The
> process I'm running to reproduce this issue does the following:
could you open a bug on red.libssh.org? If you have code examples please add
them and also check the server log.
> Thread A
> 1. Create a new SSH session to IP x.
> 2. Open a channel and send a command.
> 3. While bytes are being received, read channel output.
> 4. Close the channel and session.
> Thread B
> 1. Create a new SSH session to same IP x.
> 2. Open a channel and send a command that effectively stops A.3
> 3. Close the channel and session.
> My guess is that the issue is a result of multiple sessions being created
> for the same host, and when the first session is closed as a result of B.2,
> B is somehow getting stuck, but I do not have enough insight into libssh to
> be certain.
> I have attached logs containing function traces. Any feedback, comments,
> suggestions, or inputs is very much appreciated.
> Thank you,
> This e-mail and any files transmitted with it are ShoreTel property, are
> confidential, and are intended solely for the use of the individual or
> entity to whom this e-mail is addressed. If you are not one of the named
> recipient(s) or otherwise have reason to believe that you have received
> this message in error, please notify the sender and delete this message
> immediately from your computer. Any other use, retention, dissemination,
> forwarding, printing, or copying of this e-mail is strictly prohibited
Andreas Schneider GPG-ID: F33E3FC6
Archive administrator: firstname.lastname@example.org