diff --git a/src/org/redkale/net/ProtocolServer.java b/src/org/redkale/net/ProtocolServer.java index 29caf918f..e06d5e6a6 100644 --- a/src/org/redkale/net/ProtocolServer.java +++ b/src/org/redkale/net/ProtocolServer.java @@ -85,7 +85,7 @@ public abstract class ProtocolServer { //--------------------------------------------------------------------- public static ProtocolServer create(String protocol, Context context) { - if ("TCP".equalsIgnoreCase(protocol)) return new ProtocolNIOTCPServer(context); + if ("TCP".equalsIgnoreCase(protocol)) return new ProtocolAIOTCPServer(context); if ("UDP".equalsIgnoreCase(protocol)) return new ProtocolBIOUDPServer(context); throw new RuntimeException("ProtocolServer not support protocol " + protocol); }