From 3c2d2be65d83c1474f34f2cc3c122c683b48efab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=88=80?= Date: Tue, 4 Apr 2023 13:09:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E4=B8=8B=E5=BC=95=E5=8F=91=E7=9A=84=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/smartboot/socket/transport/TcpAioSession.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aio-core/src/main/java/org/smartboot/socket/transport/TcpAioSession.java b/aio-core/src/main/java/org/smartboot/socket/transport/TcpAioSession.java index de32db00..11e200e8 100644 --- a/aio-core/src/main/java/org/smartboot/socket/transport/TcpAioSession.java +++ b/aio-core/src/main/java/org/smartboot/socket/transport/TcpAioSession.java @@ -236,7 +236,10 @@ final class TcpAioSession extends AioSession { if (immediate) { try { byteBuf.close(); - readBuffer.clean(); + if (readBuffer != null) { + readBuffer.clean(); + readBuffer = null; + } if (writeBuffer != null) { writeBuffer.clean(); writeBuffer = null; -- Gitee From dbaaf79fd391f895275859b6fc7e38a0ee6f6cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=88=80?= Date: Tue, 4 Apr 2023 21:46:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E7=89=881.6.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio-core/pom.xml | 2 +- .../java/org/smartboot/socket/transport/IoServerConfig.java | 2 +- aio-enhance/pom.xml | 2 +- aio-pro/pom.xml | 2 +- benchmark/pom.xml | 2 +- example/pom.xml | 2 +- pom.xml | 2 +- smart-socket-parent/pom.xml | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/aio-core/pom.xml b/aio-core/pom.xml index b80ce55d..58718d17 100644 --- a/aio-core/pom.xml +++ b/aio-core/pom.xml @@ -19,7 +19,7 @@ org.smartboot.socket smart-socket-parent - 1.6.3 + 1.6.4 ../smart-socket-parent diff --git a/aio-core/src/main/java/org/smartboot/socket/transport/IoServerConfig.java b/aio-core/src/main/java/org/smartboot/socket/transport/IoServerConfig.java index 08ea4e3e..a5e4f431 100644 --- a/aio-core/src/main/java/org/smartboot/socket/transport/IoServerConfig.java +++ b/aio-core/src/main/java/org/smartboot/socket/transport/IoServerConfig.java @@ -39,7 +39,7 @@ final class IoServerConfig { /** * 当前smart-socket版本号 */ - public static final String VERSION = "v1.6.3"; + public static final String VERSION = "v1.6.4"; /** * 消息体缓存大小,字节 diff --git a/aio-enhance/pom.xml b/aio-enhance/pom.xml index d4eb5cae..24d3c370 100644 --- a/aio-enhance/pom.xml +++ b/aio-enhance/pom.xml @@ -14,7 +14,7 @@ smart-socket-parent org.smartboot.socket - 1.6.3 + 1.6.4 ../smart-socket-parent 4.0.0 diff --git a/aio-pro/pom.xml b/aio-pro/pom.xml index 88e91216..18c6cca8 100644 --- a/aio-pro/pom.xml +++ b/aio-pro/pom.xml @@ -19,7 +19,7 @@ org.smartboot.socket smart-socket-parent - 1.6.3 + 1.6.4 ../smart-socket-parent diff --git a/benchmark/pom.xml b/benchmark/pom.xml index d9a24ce1..86acbfae 100644 --- a/benchmark/pom.xml +++ b/benchmark/pom.xml @@ -18,7 +18,7 @@ org.smartboot.socket aio-pro - 1.6.3 + 1.6.4 org.slf4j diff --git a/example/pom.xml b/example/pom.xml index e0f65553..5cafdfdf 100644 --- a/example/pom.xml +++ b/example/pom.xml @@ -23,7 +23,7 @@ org.smartboot.socket aio-pro - 1.6.3 + 1.6.4 org.apache.commons diff --git a/pom.xml b/pom.xml index 9e9dc207..00b48f2a 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.smartboot.socket smart-socket-parent - 1.6.3 + 1.6.4 2.6 diff --git a/smart-socket-parent/pom.xml b/smart-socket-parent/pom.xml index d95f106f..59544ffc 100644 --- a/smart-socket-parent/pom.xml +++ b/smart-socket-parent/pom.xml @@ -15,14 +15,14 @@ 4.0.0 org.smartboot.socket smart-socket-parent - 1.6.3 + 1.6.4 pom UTF-8 1.7.36 - 1.6.3 + 1.6.4 4.13.2 -- Gitee