Skip to content

Commit

Permalink
Upgrade dependency to Hunt-NET 0.4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed Apr 30, 2020
1 parent 1fd1d5f commit 640ce17
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

# Executables
*.exe
*-test-*

# DUB
.dub
Expand All @@ -32,6 +33,9 @@ __dummy.html
# crash file
core

# others
*.tar.gz

# Examples
examples/UnitTest/unittest
examples/H2C-Demo/h2c-client
Expand All @@ -41,5 +45,3 @@ examples/HttpDemo/http-server
examples/WebSocketDemo/websocket-client
examples/WebSocketDemo/websocket-server
examples/UnitTest/unittest-*
*-test-default

2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"homepage": "https://www.huntlabs.net",
"license": "Apache-2.0",
"dependencies": {
"hunt-net": "~>0.4.6"
"hunt-net": "~>0.4.10"
},
"configurations": [
{
Expand Down
14 changes: 12 additions & 2 deletions source/hunt/http/server/HttpServer.d
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ class HttpServer : AbstractLifecycle {
_server.close();
}

version(HUNT_DEBUG) warning("stopping the EventLoop...");
NetUtil.stopEventLoop();
// version(HUNT_DEBUG) warning("stopping the EventLoop...");
// NetUtil.stopEventLoop();
}

private void checkWorkingDirectory() {
Expand Down Expand Up @@ -332,6 +332,16 @@ class HttpServer : AbstractLifecycle {
return this;
}

Builder ioThreadSize(uint value) {
_httpOptions.getTcpConfiguration().ioThreadSize = value;
return this;
}

Builder workerThreadSize(uint value) {
_httpOptions.getTcpConfiguration().workerThreadSize = value;
return this;
}

// Certificate Authority (CA) certificate
Builder setCaCert(string caFile, string caPassword) {
_tlsCaFile = caFile;
Expand Down

0 comments on commit 640ce17

Please sign in to comment.