Skip to content

Commit

Permalink
shut down DNS multicast uncleanly but a lot more quickly
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Aug 9, 2011
1 parent a4dc8db commit 1fbc512
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions changelog.html
Expand Up @@ -57,6 +57,8 @@
<ul class=image>
<li class=bug>
Fixed a bug where SSH public key authentication for CLI wasn't working for username/password based security realm.
<li class=rfe>
Improved the speed of shutdown
<li class=rfe>
Added a dignosis CLI command to report the current granted authorities.
</ul>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Expand Up @@ -429,7 +429,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci</groupId>
<artifactId>jmdns</artifactId>
<version>3.4.0-jenkins-2</version>
<version>3.4.0-jenkins-3</version>
</dependency>
<dependency>
<groupId>com.sun.winsw</groupId>
Expand Down
10 changes: 5 additions & 5 deletions core/src/main/java/hudson/DNSMultiCast.java
Expand Up @@ -52,12 +52,12 @@ public DNSMultiCast(Jenkins hudson) {

public void close() {
if (jmdns!=null) {
try {
jmdns.close();
// try {
jmdns.abort();
jmdns = null;
} catch (final IOException e) {
LOGGER.log(Level.WARNING,"Failed to close down JmDNS instance!",e);
}
// } catch (final IOException e) {
// LOGGER.log(Level.WARNING,"Failed to close down JmDNS instance!",e);
// }
}
}

Expand Down
2 changes: 1 addition & 1 deletion licenseCompleter.groovy
Expand Up @@ -47,7 +47,7 @@ complete {
rewriteLicense([],license("BSD License","http://dom4j.sourceforge.net/dom4j-1.6.1/license.html"))
}

match(["org.codehaus.groovy:*","*:jmdns"]) {
match(["org.codehaus.groovy:*"]) {
// see http://groovy.codehaus.org/License+Information
// see http://jmdns.sourceforge.net/license.html
rewriteLicense([],apacheLicense)
Expand Down

0 comments on commit 1fbc512

Please sign in to comment.