forked from KNEMC/KLALB
性能优化
This commit is contained in:
@@ -28,8 +28,7 @@ public class KLALBServer {
|
||||
}else {
|
||||
nx=new IOThreadManager();
|
||||
Socket soc=new Socket("192.168.1.233",8444);
|
||||
nx.setOut(soc.getOutputStream());
|
||||
nx.setIn(soc.getInputStream());
|
||||
nx.setLocal(new TCPConnection(null, soc));
|
||||
nx.startLocal();
|
||||
whm.put(uid, nx);
|
||||
|
||||
@@ -37,7 +36,7 @@ public class KLALBServer {
|
||||
nx.handleSocket(new TCPConnection(null,s));
|
||||
int n=nx.getTcps().size();
|
||||
if(n<=0) {
|
||||
nx.closeALL();
|
||||
nx.closeLocal();
|
||||
System.out.println("连接已关闭");
|
||||
}
|
||||
}catch(ConnectException e) {
|
||||
|
||||
Reference in New Issue
Block a user