From 6f1b52cff3d5d3a091f3b173e8c7474591f7668c Mon Sep 17 00:00:00 2001 From: lerry903 Date: Fri, 26 Jun 2020 19:20:47 +0800 Subject: [PATCH] Update AioSession.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix:github #940 --- .../src/main/java/cn/hutool/socket/aio/AioSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hutool-socket/src/main/java/cn/hutool/socket/aio/AioSession.java b/hutool-socket/src/main/java/cn/hutool/socket/aio/AioSession.java index 553a8b7b4..7dc58b641 100644 --- a/hutool-socket/src/main/java/cn/hutool/socket/aio/AioSession.java +++ b/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; }