Sfoglia il codice sorgente

remove aio-enhance (#6686)

* update smart-servlet to 0.1.3-SNAPSHOT

* update aio-enhance to 1.0.3-SNAPSHOT

* smart-servlet bugfix

* bugfix

* update smart-socket to 1.5.6-SNAPSHOT

* remove file

* update aio-enhance to 1.0.4-SNAPSHOT

* 优化代码

* 优化代码

* update smart-socket to 1.5.6

* config threadNum

* update smart-socket to 1.5.7-SNAPSHOT

* 优化代码

* update smart-socket to 1.5.10-SNAPSHOT

* 优化代码

* 优化代码

* 优化代码

* 异常aio-enhance
三刀 4 anni fa
parent
commit
16bdc62ee0

+ 0 - 6
frameworks/Java/smart-socket/pom.xml

@@ -11,7 +11,6 @@
         <maven.compiler.source>11</maven.compiler.source>
         <maven.compiler.source>11</maven.compiler.source>
         <maven.compiler.target>11</maven.compiler.target>
         <maven.compiler.target>11</maven.compiler.target>
         <log4j.version>2.11.0</log4j.version>
         <log4j.version>2.11.0</log4j.version>
-        <aio-enhance.version>1.0.4-SNAPSHOT</aio-enhance.version>
         <smartservlet.version>0.1.5-SNAPSHOT</smartservlet.version>
         <smartservlet.version>0.1.5-SNAPSHOT</smartservlet.version>
         <smartsocket.version>1.5.10-SNAPSHOT</smartsocket.version>
         <smartsocket.version>1.5.10-SNAPSHOT</smartsocket.version>
     </properties>
     </properties>
@@ -22,11 +21,6 @@
             <artifactId>servlet-core</artifactId>
             <artifactId>servlet-core</artifactId>
             <version>${smartservlet.version}</version>
             <version>${smartservlet.version}</version>
         </dependency>
         </dependency>
-        <dependency>
-            <groupId>org.smartboot.aio</groupId>
-            <artifactId>aio-enhance</artifactId>
-            <version>${aio-enhance.version}</version>
-        </dependency>
         <dependency>
         <dependency>
             <groupId>com.zaxxer</groupId>
             <groupId>com.zaxxer</groupId>
             <artifactId>HikariCP</artifactId>
             <artifactId>HikariCP</artifactId>

+ 0 - 3
frameworks/Java/smart-socket/src/main/java/org/smartboot/http/Bootstrap.java

@@ -11,7 +11,6 @@ package org.smartboot.http;
 import com.zaxxer.hikari.HikariConfig;
 import com.zaxxer.hikari.HikariConfig;
 import com.zaxxer.hikari.HikariDataSource;
 import com.zaxxer.hikari.HikariDataSource;
 import org.smartboot.Message;
 import org.smartboot.Message;
-import org.smartboot.aio.EnhanceAsynchronousChannelProvider;
 import org.smartboot.http.server.HttpBootstrap;
 import org.smartboot.http.server.HttpBootstrap;
 import org.smartboot.http.server.HttpRequest;
 import org.smartboot.http.server.HttpRequest;
 import org.smartboot.http.server.HttpResponse;
 import org.smartboot.http.server.HttpResponse;
@@ -29,8 +28,6 @@ public class Bootstrap {
     static byte[] body = "Hello, World!".getBytes();
     static byte[] body = "Hello, World!".getBytes();
 
 
     public static void main(String[] args) {
     public static void main(String[] args) {
-        System.setProperty("java.nio.channels.spi.AsynchronousChannelProvider", EnhanceAsynchronousChannelProvider.class.getName());
-
         HttpRouteHandler routeHandle = new HttpRouteHandler();
         HttpRouteHandler routeHandle = new HttpRouteHandler();
         routeHandle
         routeHandle
                 .route("/plaintext", new HttpServerHandler() {
                 .route("/plaintext", new HttpServerHandler() {

+ 0 - 3
frameworks/Java/smart-socket/src/main/java/org/smartboot/servlet/Bootstrap.java

@@ -1,6 +1,5 @@
 package org.smartboot.servlet;
 package org.smartboot.servlet;
 
 
-import org.smartboot.aio.EnhanceAsynchronousChannelProvider;
 import org.smartboot.http.server.HttpBootstrap;
 import org.smartboot.http.server.HttpBootstrap;
 import org.smartboot.http.server.HttpRequest;
 import org.smartboot.http.server.HttpRequest;
 import org.smartboot.http.server.HttpResponse;
 import org.smartboot.http.server.HttpResponse;
@@ -20,8 +19,6 @@ import java.io.IOException;
 public class Bootstrap {
 public class Bootstrap {
 
 
     public static void main(String[] args) {
     public static void main(String[] args) {
-        System.setProperty("java.nio.channels.spi.AsynchronousChannelProvider", EnhanceAsynchronousChannelProvider.class.getName());
-
         ContainerRuntime containerRuntime = new ContainerRuntime();
         ContainerRuntime containerRuntime = new ContainerRuntime();
         // plaintext
         // plaintext
         ServletContextRuntime applicationRuntime = new ServletContextRuntime("/");
         ServletContextRuntime applicationRuntime = new ServletContextRuntime("/");