Browse Source

update to 1.0.8 (#4101)

* smart-socket 1.0

* smart-socket 1.0

* smart-socket 1.0.1

* smart-socket 1.0.1

* smart-socket 1.0.1

* smart-http 1.0.3

* smart-http 1.0.4

* update dockerfile

* v1.0.7

* v1.0.8
三刀 6 years ago
parent
commit
ef4f70355d

+ 1 - 1
frameworks/Java/smart-socket/pom.xml

@@ -9,7 +9,7 @@
     <parent>
         <groupId>org.smartboot.http</groupId>
         <artifactId>smart-http-parent</artifactId>
-        <version>1.0.7</version>
+        <version>1.0.8</version>
     </parent>
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

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

@@ -8,10 +8,10 @@
 
 package org.smartboot.http;
 
+import org.smartboot.http.server.HttpMessageProcessor;
+import org.smartboot.http.server.decode.Http11Request;
+import org.smartboot.http.server.decode.HttpRequestProtocol;
 import org.smartboot.http.server.handle.HttpHandle;
-import org.smartboot.http.server.v2.HttpMessageProcessor;
-import org.smartboot.http.server.v2.decode.Http11Request;
-import org.smartboot.http.server.v2.decode.HttpRequestProtocol;
 import org.smartboot.http.utils.HttpHeaderConstant;
 import org.smartboot.socket.MessageProcessor;
 import org.smartboot.socket.transport.AioQuickServer;
@@ -52,6 +52,7 @@ public class Bootstrap {
         AioQuickServer<Http11Request> server = new AioQuickServer<>(8080, new HttpRequestProtocol(), processor);
         server.setWriteQueueSize(1024);
         server.setReadBufferSize(1024*4);
+        server.setFairIO(true);
 //        server.setThreadNum((int) (Runtime.getRuntime().availableProcessors() * 2));
         try {
             server.start();