summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-18 14:30:51 +0100
committerSimon Rettberg2017-12-18 14:30:51 +0100
commit938f1bf43cb03e5d337982c92f6b5c1782f5021a (patch)
tree9cd15fc3a8dd4d0da6d484d613a93ac74dc468f6 /src/main/java/org/openslx
parent[CreateLdapConfig] Make sure uidnumber and localhome won't be remapped in AD ... (diff)
downloadtmlite-bwlp-938f1bf43cb03e5d337982c92f6b5c1782f5021a.tar.gz
tmlite-bwlp-938f1bf43cb03e5d337982c92f6b5c1782f5021a.tar.xz
tmlite-bwlp-938f1bf43cb03e5d337982c92f6b5c1782f5021a.zip
[PortScan] Slightly better error message + timeout
Diffstat (limited to 'src/main/java/org/openslx')
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/PortScan.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/PortScan.java b/src/main/java/org/openslx/taskmanager/tasks/PortScan.java
index ee0e8b5..3471897 100644
--- a/src/main/java/org/openslx/taskmanager/tasks/PortScan.java
+++ b/src/main/java/org/openslx/taskmanager/tasks/PortScan.java
@@ -112,13 +112,13 @@ public class PortScan extends AbstractTask
try {
Socket sock = new Socket();
- sock.connect( new InetSocketAddress( this.host, port ), 1200 );
+ sock.connect( new InetSocketAddress( this.host, port ), 1500 );
open = true;
messages.append( "Found open port " + port );
sock.close();
} catch ( Exception e ) {
if ( !open ) {
- messages.append( "Found closed port " + port );
+ messages.append( "Found closed port " + port + " (" + e.toString() + ")" );
}
}
if ( open ) {