Skip to content

Commit 4fad65b

Browse files
greenlaw110NateBrady23
authored andcommitted
[ci fw-only Java/t-io] update tio-mvc to 3.1.0 (TechEmpower#3908)
1 parent fffe076 commit 4fad65b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

frameworks/Java/t-io/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ These implementations use the t-io's controller.
1010

1111

1212
## Versions
13-
3.0.8.v20180630-RELEASE (https://gitee.com/tywo45/t-io)
13+
3.1.0.v20180705-RELEASE (https://gitee.com/tywo45/t-io)
1414

1515
## Test URLs
1616

frameworks/Java/t-io/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>org.t-io</groupId>
1010
<artifactId>tio-http-parent</artifactId>
11-
<version>3.0.8.v20180630-RELEASE</version>
11+
<version>3.1.0.v20180705-RELEASE</version>
1212
</parent>
1313

1414
<properties>

frameworks/Java/t-io/src/main/java/org/tio/http/server/benchmark/controller/TestController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ public class TestController {
2222

2323
@RequestPath(value = "json")
2424
public HttpResponse json(HttpRequest request) throws Exception {
25-
request.channelContext.groupContext.useQueueSend = false;
25+
request.channelContext.groupContext.setUseQueueSend(false);
2626
return Resps.json(request, new Message(HELLO_WORLD));
2727
}
2828

2929
@RequestPath(value = "plaintext")
3030
public HttpResponse plaintext(HttpRequest request) throws Exception {
31-
request.channelContext.groupContext.useQueueSend = true;
31+
request.channelContext.groupContext.setUseQueueSend(true);
3232
return Resps.bytesWithContentType(request, HELLO_WORLD_BYTES, MimeType.TEXT_PLAIN_TXT.getType());
3333
}
3434
}

frameworks/Java/t-io/src/main/java/org/tio/http/server/benchmark/init/HttpServerInit.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ public static void init() throws Exception {
2929
String[] scanPackages = new String[] { TestController.class.getPackage().getName() };
3030
Routes routes = new Routes(scanPackages);
3131

32-
DefaultHttpRequestHandler requestHandler = new DefaultHttpRequestHandler(httpConfig, routes);
33-
32+
requestHandler = new DefaultHttpRequestHandler(httpConfig, routes);
3433
httpServerStarter = new HttpServerStarter(httpConfig, requestHandler);
3534
serverGroupContext = httpServerStarter.getServerGroupContext();
35+
serverGroupContext.setUseQueueDecode(true);
3636
httpServerStarter.start();
3737
}
3838
}

0 commit comments

Comments
 (0)