vishwakulkarni / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

Busyloop in sessionless mode #643

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a host.
2. Uncheck "Start shell session" option in the host configuration.
3. Add a port forwarding entry.
4. Connect to the host.

What is the expected output? What do you see instead?
CPU consumption becomes 100%, even after disconnection.
Port forwarding is working well.

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
1.7.1

What type of system are you trying to connect to?
OpenSSH on Ubuntu 12.04

Please provide any additional information below.
With some inspection, I found it's caused in org.connectbot.service.Relay.run() 
method.
Call to SSH.read() in the while loop returns 0 immediately if session is not 
open.
That causes the problem.

Original issue reported on code.google.com by niboshi...@gmail.com on 14 Apr 2013 at 3:15

GoogleCodeExporter commented 8 years ago
The problem is fixed with this patch.

Original comment by niboshi...@gmail.com on 14 Apr 2013 at 3:28

Attachments: