diff options
author | Simon Rettberg | 2017-12-18 14:30:51 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-18 14:30:51 +0100 |
commit | 938f1bf43cb03e5d337982c92f6b5c1782f5021a (patch) | |
tree | 9cd15fc3a8dd4d0da6d484d613a93ac74dc468f6 /src | |
parent | [CreateLdapConfig] Make sure uidnumber and localhome won't be remapped in AD ... (diff) | |
download | tmlite-bwlp-938f1bf43cb03e5d337982c92f6b5c1782f5021a.tar.gz tmlite-bwlp-938f1bf43cb03e5d337982c92f6b5c1782f5021a.tar.xz tmlite-bwlp-938f1bf43cb03e5d337982c92f6b5c1782f5021a.zip |
[PortScan] Slightly better error message + timeout
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/openslx/taskmanager/tasks/PortScan.java | 4 |
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 ) { |