Browse Source

Merge pull request #941 from lerry903/v5-dev

fix:github #940
Golden Looly 5 years ago
parent
commit
db3d1a1572
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hutool-socket/src/main/java/cn/hutool/socket/aio/AioSession.java

+ 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.readBuffer = ByteBuffer.allocate(config.getReadBufferSize());
 		this.writeBuffer = ByteBuffer.allocate(config.getWriteBufferSize());
+		this.readTimeout = config.getReadTimeout();
+		this.writeTimeout = config.getWriteTimeout();
 		this.ioAction = ioAction;
 	}