[
https://issues.jboss.org/browse/JBIDE-21463?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-21463:
-----------------------------------------------
We can add validation of local ports, if they are in use. It seems to be quite a fast
operation. The following code, checking all 65536 ports for availability:
{code}
for (int i = 0; i < 65536; i++) {
try {
new ServerSocket(i).close();
} catch (IOException e) {
System.out.println("Port " + i + " is in use");
}
}
{code}
runs less than one second.
We have to check only few ports, and show an error status listing those in use. When port
forwarding is started, we can either not check ports at all, or check that they _are_ in
use, and if not, show warning status listing ports that should be in use but are not.
[~adietish], do you think that may be ok?
Port Forwarding: No error message pop up when attempt to port-forward
to a port in use
--------------------------------------------------------------------------------------
Key: JBIDE-21463
URL:
https://issues.jboss.org/browse/JBIDE-21463
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.3.1.Beta2
Environment: OpenShift 3 Tools: 3.1.0.Beta2-v20160114-1935-B149
OS: Fedora 17 & MAC OS 10
Reporter: Xia Zhao
Labels: openshift_v3, port_forwarding_wizard
Fix For: 4.3.1.CR1
No error message pop up when attempt to port-forward to a port in use in Jboss Developer
Studio. This issue does not repro in Eclipse on Mac OS.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)