Skip to content

Commit 176adc5

Browse files
committed
upgrade smart-servlet to 1.4
1 parent 6116cb9 commit 176adc5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

frameworks/Java/smart-socket/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<maven.compiler.source>17</maven.compiler.source>
1212
<maven.compiler.target>17</maven.compiler.target>
1313
<log4j.version>2.17.1</log4j.version>
14-
<smartservlet.version>1.0-SNAPSHOT</smartservlet.version>
14+
<smartservlet.version>1.4</smartservlet.version>
1515
<hikaricp.version>5.0.0</hikaricp.version>
1616
<jsoniter.version>0.9.23</jsoniter.version>
1717
</properties>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public void handle(HttpRequest request, HttpResponse response) throws IOExceptio
5151
HttpBootstrap bootstrap = new HttpBootstrap();
5252
bootstrap.configuration()
5353
.threadNum(cpuNum)
54+
.headerLimiter(0)
5455
.readBufferSize(1024 * 4)
5556
.writeBufferSize(1024 * 4)
5657
.readMemoryPool(16384 * 1024 * 4)

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class Bootstrap {
1717
public static void main(String[] args) throws Throwable {
1818
ContainerRuntime containerRuntime = new ContainerRuntime();
1919
// plaintext
20-
ServletContextRuntime applicationRuntime = new ServletContextRuntime("/");
20+
ServletContextRuntime applicationRuntime = new ServletContextRuntime(null, Thread.currentThread().getContextClassLoader(), "/");
2121
ServletInfo plainTextServletInfo = new ServletInfo();
2222
plainTextServletInfo.setServletName("plaintext");
2323
plainTextServletInfo.setServletClass(HelloWorldServlet.class.getName());
@@ -38,6 +38,7 @@ public static void main(String[] args) throws Throwable {
3838
bootstrap.configuration()
3939
.threadNum(cpuNum)
4040
.bannerEnabled(false)
41+
.headerLimiter(0)
4142
.readBufferSize(1024 * 4)
4243
.writeBufferSize(1024 * 4)
4344
.readMemoryPool(16384 * 1024 * 4)

0 commit comments

Comments
 (0)