Skip to content

Commit c5be01a

Browse files
authored
http4k - upgrade core library and update server worker count for undertow implementation (#7970)
* update undertow server workers * upgrade http4k library
1 parent e167541 commit c5be01a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frameworks/Kotlin/http4k/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
ext.kotlin_version = "1.8.10"
3-
ext.http4k_version = "4.37.0.0"
3+
ext.http4k_version = "4.39.0.0"
44

55
repositories {
66
mavenCentral()

frameworks/Kotlin/http4k/undertow/src/main/kotlin/Http4kUndertowServer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private fun CustomUndertow(port: Int) = object : ServerConfig {
1313
val server = io.undertow.Undertow.builder()
1414
.addHttpListener(port, "0.0.0.0")
1515
.setHandler(BlockingHandler(Http4kUndertowHttpHandler(http)))
16-
.setWorkerThreads(32 * Runtime.getRuntime().availableProcessors())
16+
.setWorkerThreads(64 * Runtime.getRuntime().availableProcessors())
1717
.build()
1818

1919
override fun start() = apply { server.start() }

0 commit comments

Comments
 (0)