修复长时间使用导致连接卡死的故障

优化性能,减少内存占用
提高断线切换的响应速度
This commit is contained in:
Administrator
2023-04-05 08:44:37 +08:00
parent cc1df750ae
commit 0499ecb34d
10 changed files with 508 additions and 174 deletions
@@ -36,7 +36,7 @@ import com.google.gson.stream.JsonReader;
public class KLALBClient {
private UUID suid=UUID.randomUUID();
private IOThreadManager iom=new IOThreadManager();
private KLALBController iom=new KLALBController();
private List<Tunnel> tls=new ArrayList<>();
private List<TCPListener> tcpl=new ArrayList<>();
private List<ProxyElement> pet=new ArrayList<>();
@@ -114,7 +114,7 @@ public class KLALBClient {
}
try {
//System.out.println(re);
Thread.sleep(1000*(1<<Math.min(re,7)));
Thread.sleep(5000*(1<<Math.min(re,3)));
} catch (InterruptedException e) {
e.printStackTrace();
}