Skip to content

Commit

Permalink
Fix for using tcpkeepalive with groovy netserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien Maury committed Jul 5, 2012
1 parent c7ce347 commit 416669a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/groovy/org/vertx/groovy/core/net/NetServer.groovy
Expand Up @@ -178,6 +178,7 @@ abstract class NetServer {
*/
NetServer setTCPKeepAlive(boolean keepAlive) {
jServer.setTCPKeepAlive(keepAlive)
this
}

/**
Expand Down Expand Up @@ -242,7 +243,7 @@ abstract class NetServer {
* @return true if TCP keep alive is enabled
*/
Boolean isTCPKeepAlive() {
return jServer.isTCPKeepAlive()
jServer.isTCPKeepAlive()
}

/**
Expand Down Expand Up @@ -320,9 +321,4 @@ abstract class NetServer {
private Handler wrapHandler(Closure hndlr) {
return {hndlr(new NetSocket(it))} as Handler
}





}

0 comments on commit 416669a

Please sign in to comment.