directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: DIRKRB-562 KDC virtual memory used increases with the requestes processed. Contributed by Wei.
Date Wed, 04 May 2016 01:23:22 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk db8866edd -> 8d1694b78


DIRKRB-562 KDC virtual memory used increases with the requestes processed. Contributed by
Wei.


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/8d1694b7
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/8d1694b7
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/8d1694b7

Branch: refs/heads/trunk
Commit: 8d1694b78179073f865165c91d108f61c5f99827
Parents: db8866e
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Wed May 4 09:28:29 2016 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Wed May 4 09:28:29 2016 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kdc/impl/NettyKdcNetwork.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/8d1694b7/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcNetwork.java
----------------------------------------------------------------------
diff --git a/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcNetwork.java
b/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcNetwork.java
index 86160a9..cfa4adb 100644
--- a/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcNetwork.java
+++ b/kerby-kdc/src/main/java/org/apache/kerby/kerberos/kdc/impl/NettyKdcNetwork.java
@@ -51,6 +51,7 @@ public class NettyKdcNetwork {
     private EventLoopGroup bossGroup;
     private EventLoopGroup workerGroup;
     private EventLoopGroup group;
+    private DefaultEventExecutorGroup executorGroup;
     private static final Logger LOG = LoggerFactory.getLogger(NettyKdcNetwork.class);
 
     public void init(KdcContext kdcContext) {
@@ -58,6 +59,7 @@ public class NettyKdcNetwork {
         // Configure the server.
         bossGroup = new NioEventLoopGroup(1);
         workerGroup = new NioEventLoopGroup();
+        executorGroup = new DefaultEventExecutorGroup(10); //TODO: to configure.
     }
 
     public void listen(InetSocketAddress tcpAddress,
@@ -110,7 +112,7 @@ public class NettyKdcNetwork {
             public void initChannel(SocketChannel ch) throws Exception {
                 ChannelPipeline p = ch.pipeline();
                 p.addLast(new KrbMessageDecoder());
-                p.addLast(new DefaultEventExecutorGroup(10), //TODO: to configure.
+                p.addLast(executorGroup,
                         "KDC_HANDLER",
                         new NettyKdcHandler(kdcContext));
             }


Mime
View raw message