Browse Source

update smart-http to 1.0.13-SNAPSHOT (#5278)

三刀 5 years ago
parent
commit
fee8fee4df

+ 18 - 2
frameworks/Java/smart-socket/pom.xml

@@ -9,7 +9,7 @@
     <parent>
     <parent>
         <groupId>org.smartboot.http</groupId>
         <groupId>org.smartboot.http</groupId>
         <artifactId>smart-http-parent</artifactId>
         <artifactId>smart-http-parent</artifactId>
-        <version>1.0.12.rc-2</version>
+        <version>1.0.13-SNAPSHOT</version>
     </parent>
     </parent>
     <properties>
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -25,7 +25,7 @@
         <dependency>
         <dependency>
             <groupId>org.smartboot.socket</groupId>
             <groupId>org.smartboot.socket</groupId>
             <artifactId>aio-pro</artifactId>
             <artifactId>aio-pro</artifactId>
-            <version>1.4.6.rc-5</version>
+            <version>1.4.7-SNAPSHOT</version>
         </dependency>
         </dependency>
         <dependency>
         <dependency>
             <groupId>com.jsoniter</groupId>
             <groupId>com.jsoniter</groupId>
@@ -55,6 +55,11 @@
             <name>Central Repository</name>
             <name>Central Repository</name>
             <url>https://repo.maven.apache.org/maven2</url>
             <url>https://repo.maven.apache.org/maven2</url>
         </repository>
         </repository>
+        <repository>
+            <id>sonatype-nexus-snapshots</id>
+            <name>Sonatype Nexus Snapshots</name>
+            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+        </repository>
     </repositories>
     </repositories>
     <pluginRepositories>
     <pluginRepositories>
         <pluginRepository>
         <pluginRepository>
@@ -62,6 +67,17 @@
             <name>Central Repository</name>
             <name>Central Repository</name>
             <url>https://repo.maven.apache.org/maven2</url>
             <url>https://repo.maven.apache.org/maven2</url>
         </pluginRepository>
         </pluginRepository>
+        <pluginRepository>
+            <id>sonatype-nexus-snapshots</id>
+            <name>Sonatype Nexus Snapshots</name>
+            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </pluginRepository>
     </pluginRepositories>
     </pluginRepositories>
     <build>
     <build>
         <plugins>
         <plugins>

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

@@ -29,6 +29,7 @@ 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("sun.nio.ch.maxCompletionHandlersOnStack", "32");
         RouteHandle routeHandle = new RouteHandle();
         RouteHandle routeHandle = new RouteHandle();
         routeHandle.route("/plaintext", new HttpHandle() {
         routeHandle.route("/plaintext", new HttpHandle() {