From 08b34df2ac83d1b8d81e427498bb1476cc063fa3 Mon Sep 17 00:00:00 2001
From: zhangtianxiao <920950604@qq.com>
Date: Fri, 25 Jun 2021 19:04:47 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8DHttpStaticResourceHandler?=
=?UTF-8?q?=E4=B8=AD=E9=87=87=E7=94=A8MappedByteBuffer=E8=87=B4=E4=BD=BF?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E9=95=BF=E6=97=B6=E9=97=B4=E8=A2=AB=E5=8D=A0?=
=?UTF-8?q?=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/.gitignore | 0
.idea/compiler.xml | 21 +++++++++
.../inspectionProfiles/profiles_settings.xml | 5 +++
.idea/jarRepositories.xml | 30 +++++++++++++
...__org_smartboot_socket_aio_core_1_5_10.xml | 13 ++++++
.idea/misc.xml | 11 +++++
.idea/modules.xml | 11 +++++
.idea/smart-http.iml | 12 +++++
.idea/vcs.xml | 6 +++
.idea/workspace.xml | 45 +++++++++++++++++++
smart-http-client/smart-http-client.iml | 15 +++++++
smart-http-common/smart-http-common.iml | 14 ++++++
smart-http-server/smart-http-server.iml | 17 +++++++
.../handler/HttpStaticResourceHandler.java | 1 +
14 files changed, 201 insertions(+)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/compiler.xml
create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
create mode 100644 .idea/jarRepositories.xml
create mode 100644 .idea/libraries/Maven__org_smartboot_socket_aio_core_1_5_10.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/smart-http.iml
create mode 100644 .idea/vcs.xml
create mode 100644 .idea/workspace.xml
create mode 100644 smart-http-client/smart-http-client.iml
create mode 100644 smart-http-common/smart-http-common.iml
create mode 100644 smart-http-server/smart-http-server.iml
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..9fa1716
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..0eefe32
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..b781428
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_smartboot_socket_aio_core_1_5_10.xml b/.idea/libraries/Maven__org_smartboot_socket_aio_core_1_5_10.xml
new file mode 100644
index 0000000..270542d
--- /dev/null
+++ b/.idea/libraries/Maven__org_smartboot_socket_aio_core_1_5_10.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..5ac47e8
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..7363f27
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/smart-http.iml b/.idea/smart-http.iml
new file mode 100644
index 0000000..f409c0e
--- /dev/null
+++ b/.idea/smart-http.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..eca42b7
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1624618789906
+
+
+ 1624618789906
+
+
+
+
\ No newline at end of file
diff --git a/smart-http-client/smart-http-client.iml b/smart-http-client/smart-http-client.iml
new file mode 100644
index 0000000..a66f2d2
--- /dev/null
+++ b/smart-http-client/smart-http-client.iml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/smart-http-common/smart-http-common.iml b/smart-http-common/smart-http-common.iml
new file mode 100644
index 0000000..abd2efc
--- /dev/null
+++ b/smart-http-common/smart-http-common.iml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/smart-http-server/smart-http-server.iml b/smart-http-server/smart-http-server.iml
new file mode 100644
index 0000000..821f651
--- /dev/null
+++ b/smart-http-server/smart-http-server.iml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/smart-http-server/src/main/java/org/smartboot/http/server/handler/HttpStaticResourceHandler.java b/smart-http-server/src/main/java/org/smartboot/http/server/handler/HttpStaticResourceHandler.java
index fdc2168..9ba4e6c 100644
--- a/smart-http-server/src/main/java/org/smartboot/http/server/handler/HttpStaticResourceHandler.java
+++ b/smart-http-server/src/main/java/org/smartboot/http/server/handler/HttpStaticResourceHandler.java
@@ -111,6 +111,7 @@ public class HttpStaticResourceHandler extends HttpServerHandler {
readPos += mappedByteBuffer.remaining();
byte[] data = new byte[mappedByteBuffer.remaining()];
mappedByteBuffer.get(data);
+ mappedByteBuffer.force();
response.write(data);
}
fis.close();
--
Gitee
From 9057578c43644c10d57ba6ea76b7198c06214a21 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=A4=A9=E7=AC=91?= <920950604@qq.com>
Date: Fri, 25 Jun 2021 13:58:07 +0000
Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20.ide?=
=?UTF-8?q?a?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/.gitignore | 0
.idea/compiler.xml | 21 ---------
.../inspectionProfiles/profiles_settings.xml | 5 ---
.idea/jarRepositories.xml | 30 -------------
...__org_smartboot_socket_aio_core_1_5_10.xml | 13 ------
.idea/misc.xml | 11 -----
.idea/modules.xml | 11 -----
.idea/smart-http.iml | 12 -----
.idea/vcs.xml | 6 ---
.idea/workspace.xml | 45 -------------------
10 files changed, 154 deletions(-)
delete mode 100644 .idea/.gitignore
delete mode 100644 .idea/compiler.xml
delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml
delete mode 100644 .idea/jarRepositories.xml
delete mode 100644 .idea/libraries/Maven__org_smartboot_socket_aio_core_1_5_10.xml
delete mode 100644 .idea/misc.xml
delete mode 100644 .idea/modules.xml
delete mode 100644 .idea/smart-http.iml
delete mode 100644 .idea/vcs.xml
delete mode 100644 .idea/workspace.xml
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index e69de29..0000000
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
deleted file mode 100644
index 9fa1716..0000000
--- a/.idea/compiler.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
deleted file mode 100644
index 0eefe32..0000000
--- a/.idea/inspectionProfiles/profiles_settings.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
deleted file mode 100644
index b781428..0000000
--- a/.idea/jarRepositories.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_smartboot_socket_aio_core_1_5_10.xml b/.idea/libraries/Maven__org_smartboot_socket_aio_core_1_5_10.xml
deleted file mode 100644
index 270542d..0000000
--- a/.idea/libraries/Maven__org_smartboot_socket_aio_core_1_5_10.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 5ac47e8..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 7363f27..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/smart-http.iml b/.idea/smart-http.iml
deleted file mode 100644
index f409c0e..0000000
--- a/.idea/smart-http.iml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1dd..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
deleted file mode 100644
index eca42b7..0000000
--- a/.idea/workspace.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1624618789906
-
-
- 1624618789906
-
-
-
-
\ No newline at end of file
--
Gitee