This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255034 - Add a connect timeout to host properties UI [was: ssh connection issue]
Summary: Add a connect timeout to host properties UI [was: ssh connection issue]
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-06 22:05 UTC by mrochon
Modified: 2016-02-03 09:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Connection attempt hanging (24.20 KB, image/png)
2015-09-06 22:05 UTC, mrochon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrochon 2015-09-06 22:05:07 UTC
Created attachment 155926 [details]
Connection attempt  hanging

When trying to add a remote host for build/debug the ssh connection window just hangs and never prompts me for the password.

This only happens on one of my machines (both windows).

Machine A is able to connect with no issues. Machine B just hangs.

I have detailed the information I have collected with respect to this on the user forum at:

https://forums.netbeans.org/topic64208.html

Since ssh connections with both putty, and direct with a small java app I have written work without issue, I believe this to be a bug in the IDE.

The attached screenshot shows the point at which the connection hangs. The logs that I have posted to the forum post repeat endlessly and clicking cancel has no effect. I have to use the little 'stop' button at the bottom right of the IDE main window to actual cancel the connection attempt.
Comment 1 Vladimir Kvashin 2015-09-16 12:32:07 UTC
I guess the connect might be just timed out.
You can extend timeot via command-line option
-J-Djsch.connection.timeout=N 
(where N is time in milliseconds)

Will this help?
Comment 2 mrochon 2015-09-16 14:32:17 UTC
(In reply to Vladimir Kvashin from comment #1)
> I guess the connect might be just timed out.
> You can extend timeot via command-line option
> -J-Djsch.connection.timeout=N 
> (where N is time in milliseconds)
> 
> Will this help?

Yep this seems to work, so I guess the only bug is the lack of any feedback to this effect. Probably not a huge priority but a log message would have helped alot here.

The ideal solution, for me, would probably be to show this directly int he ssh connection ui, and perhaps allow configuration of the timeout value there but I would defer to what you think is best.
Comment 3 Vladimir Kvashin 2016-01-21 11:20:49 UTC
This is also related with issue 257643: if user had UI for timeout, I think he would't escalate issue 257643
Comment 4 Alexander Simon 2016-01-22 11:56:05 UTC
fixed in enum, change set:
34e19af5bd6e
Comment 5 Quality Engineering 2016-01-28 02:35:04 UTC
Integrated into 'main-silver', will be available in build *201601280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4d58f8653430
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #255034 Add a connect timeout to host properties UI [was: ssh connection issue]
fixed Bug #257643 Connect hangs because IDE does not specify list of SSH authorisation methods
(transplanted from 34e19af5bd6e5ccc89266a01b456cbb1e6a7adc7)
Comment 6 soldatov 2016-02-03 09:59:05 UTC
Verified in NetBeans 8.1 patch1