Skip to content

Commit 2b4d978

Browse files
committed
chore: use jetty engine
1 parent a974035 commit 2b4d978

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

backend/jvm/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ dependencies {
143143
// Server dependencies
144144
implementation(libs.ktor.server.core)
145145
implementation(libs.ktor.server.di)
146-
implementation(libs.ktor.server.netty)
146+
implementation(libs.ktor.server.jetty.jakarta)
147147
implementation(libs.ktor.server.content.negotiation)
148148
implementation(libs.ktor.server.metrics.micrometer)
149149
implementation(libs.ktor.server.call.logging)

backend/jvm/src/main/kotlin/dev/suresh/App.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import dev.suresh.di.configureDI
55
import dev.suresh.plugins.*
66
import dev.suresh.routes.*
77
import io.ktor.server.application.*
8-
import io.ktor.server.netty.*
8+
import io.ktor.server.jetty.jakarta.EngineMain
99
import io.ktor.server.routing.*
1010
import io.ktor.util.logging.*
1111
import kotlin.io.path.Path

backend/jvm/src/main/resources/application.conf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,21 @@ ktor {
33
host = 0.0.0.0
44
port = 8080
55
port = ${?PORT}
6-
// The url limit including query parameters
7-
maxInitialLineLength = 2048
8-
maxHeaderSize = 4096
6+
// Common for all engines
7+
// connectionGroupSize = 2
8+
// workerGroupSize = 5
9+
// callGroupSize = 10
910
shutdownGracePeriod = 200
1011
shutdownTimeout = 200
1112
shutdown.url = "/shutdown"
1213
// tcpKeepAlive = true
14+
15+
// (Jetty)
16+
// idleTimeout = PT30s
17+
18+
// (Netty) The url limit including query parameters
19+
// maxInitialLineLength = 2048
20+
// maxHeaderSize = 4096
1321
}
1422

1523
development = false

0 commit comments

Comments
 (0)