Skip to content

Commit 640ce17

Browse files
committed
Upgrade dependency to Hunt-NET 0.4.10
1 parent 1fd1d5f commit 640ce17

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# Executables
1818
*.exe
19+
*-test-*
1920

2021
# DUB
2122
.dub
@@ -32,6 +33,9 @@ __dummy.html
3233
# crash file
3334
core
3435

36+
# others
37+
*.tar.gz
38+
3539
# Examples
3640
examples/UnitTest/unittest
3741
examples/H2C-Demo/h2c-client
@@ -41,5 +45,3 @@ examples/HttpDemo/http-server
4145
examples/WebSocketDemo/websocket-client
4246
examples/WebSocketDemo/websocket-server
4347
examples/UnitTest/unittest-*
44-
*-test-default
45-

dub.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "https://www.huntlabs.net",
77
"license": "Apache-2.0",
88
"dependencies": {
9-
"hunt-net": "~>0.4.6"
9+
"hunt-net": "~>0.4.10"
1010
},
1111
"configurations": [
1212
{

source/hunt/http/server/HttpServer.d

+12-2
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ class HttpServer : AbstractLifecycle {
234234
_server.close();
235235
}
236236

237-
version(HUNT_DEBUG) warning("stopping the EventLoop...");
238-
NetUtil.stopEventLoop();
237+
// version(HUNT_DEBUG) warning("stopping the EventLoop...");
238+
// NetUtil.stopEventLoop();
239239
}
240240

241241
private void checkWorkingDirectory() {
@@ -332,6 +332,16 @@ class HttpServer : AbstractLifecycle {
332332
return this;
333333
}
334334

335+
Builder ioThreadSize(uint value) {
336+
_httpOptions.getTcpConfiguration().ioThreadSize = value;
337+
return this;
338+
}
339+
340+
Builder workerThreadSize(uint value) {
341+
_httpOptions.getTcpConfiguration().workerThreadSize = value;
342+
return this;
343+
}
344+
335345
// Certificate Authority (CA) certificate
336346
Builder setCaCert(string caFile, string caPassword) {
337347
_tlsCaFile = caFile;

0 commit comments

Comments
 (0)