Browse Source

Update AioSession.java

fix:github #940
lerry903 5 years ago
parent
commit
6f1b52cff3

+ 2 - 0
hutool-socket/src/main/java/cn/hutool/socket/aio/AioSession.java

@@ -45,6 +45,8 @@ public class AioSession implements Closeable{
 		this.channel = channel;
 		this.channel = channel;
 		this.readBuffer = ByteBuffer.allocate(config.getReadBufferSize());
 		this.readBuffer = ByteBuffer.allocate(config.getReadBufferSize());
 		this.writeBuffer = ByteBuffer.allocate(config.getWriteBufferSize());
 		this.writeBuffer = ByteBuffer.allocate(config.getWriteBufferSize());
+		this.readTimeout = config.getReadTimeout();
+		this.writeTimeout = config.getWriteTimeout();
 		this.ioAction = ioAction;
 		this.ioAction = ioAction;
 	}
 	}