代码拉取完成,页面将自动刷新
在NioSocket类中存在一个构造函数:
/**
* 构造函数
* @param parentSocketContext 父 SocketChannel 对象
* @param socketChannel SocketChannel 对象
*/
protected NioSocket(SocketContext parentSocketContext,SocketChannel socketChannel){
try {
provider = SelectorProvider.provider();
this.host = socketChannel.socket().getLocalAddress().getHostAddress();
this.port = socketChannel.socket().getLocalPort();
this.socketChannel = socketChannel;
socketChannel.configureBlocking(false);
this.copyFrom(parentSocketContext);
this.socketChannel().socket().setSoTimeout(this.readTimeout);
session = new NioSession(this);
connectModel = ConnectModel.SERVER;
} catch (IOException e) {
Logger.error("Create socket channel failed",e);
}
}
connectModel = ConnectModel.SERVER;
这是为了回应HTTPS的响应吗?