Skip to content

Commit a2e73ca

Browse files
committed
Update configuration
1 parent 9278488 commit a2e73ca

File tree

2 files changed

+4
-2
lines changed
  • frameworks/Kotlin/hexagon

2 files changed

+4
-2
lines changed

frameworks/Kotlin/hexagon/hexagon_jdk_pgclient/src/main/kotlin/Benchmark.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.hexagontk
22

3+
import com.hexagontk.core.Platform.systemSettingOrNull
34
import com.hexagontk.core.media.TEXT_HTML
45
import com.hexagontk.core.urlOf
56
import com.hexagontk.http.server.jdk.JdkHttpServer
@@ -17,7 +18,7 @@ fun main() {
1718
val templateUrl = urlOf("classpath:fortunes.jte")
1819
val engine = JdkHttpServer(
1920
executor = newVirtualThreadPerTaskExecutor(),
20-
backlog = 4_096
21+
backlog = systemSettingOrNull("backlog") ?: (8 * 1024),
2122
)
2223

2324
val benchmark = Benchmark(engine, store, templateEngine, templateUrl, settings)

frameworks/Kotlin/hexagon/hexagon_jdk_postgresql/src/main/kotlin/Benchmark.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.hexagontk
22

3+
import com.hexagontk.core.Platform.systemSettingOrNull
34
import com.hexagontk.core.media.TEXT_HTML
45
import com.hexagontk.core.urlOf
56
import com.hexagontk.http.server.jdk.JdkHttpServer
@@ -17,7 +18,7 @@ fun main() {
1718
val templateUrl = urlOf("classpath:fortunes.jte")
1819
val engine = JdkHttpServer(
1920
executor = newVirtualThreadPerTaskExecutor(),
20-
backlog = 4_096
21+
backlog = systemSettingOrNull("backlog") ?: (8 * 1024),
2122
)
2223

2324
val benchmark = Benchmark(engine, store, templateEngine, templateUrl, settings)

0 commit comments

Comments
 (0)