Open varvarbbs opened 2 years ago
private ByteBuffer remoteOutBuffer = ByteBuffer.allocate(8 * 1024); 改为 private ByteBuffer remoteOutBuffer = ByteBuffer.allocate(Short.MAX_VALUE); 具体原因我也不太清楚
另外从外网回写时不知能不能多开线程处理呢? Thread t = new Thread(new WriteVpnThread(vpnOutput, networkToDeviceQueue)); t.start();
内存:请好好的考虑我
private ByteBuffer remoteOutBuffer = ByteBuffer.allocate(8 * 1024); 改为 private ByteBuffer remoteOutBuffer = ByteBuffer.allocate(Short.MAX_VALUE);
具体原因我也不太清楚
另外从外网回写时不知能不能多开线程处理呢? Thread t = new Thread(new WriteVpnThread(vpnOutput, networkToDeviceQueue)); t.start();