This commit is contained in:
lushunming 2025-07-18 10:38:57 +08:00
parent a93236ade6
commit 7763f6646c
5 changed files with 5 additions and 5 deletions

View File

@ -85,7 +85,7 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1"
implementation 'io.ktor:ktor-server-core:2.3.4'
implementation 'io.ktor:ktor-server-netty:2.3.4'
implementation 'io.ktor:ktor-server-cio:2.3.4'
implementation 'io.ktor:ktor-server-call-logging:2.3.4'
implementation("ch.qos.logback:logback-classic:1.2.6")

View File

@ -9,8 +9,8 @@ import io.ktor.http.HttpStatusCode
import io.ktor.server.application.ApplicationCall
import io.ktor.server.application.call
import io.ktor.server.application.install
import io.ktor.server.cio.CIO
import io.ktor.server.engine.embeddedServer
import io.ktor.server.netty.Netty
import io.ktor.server.plugins.callloging.CallLogging
import io.ktor.server.response.respondBytesWriter
import io.ktor.server.response.respondText
@ -33,7 +33,7 @@ object KtorServer {
//每个片1MB
private val partSize = 1024 * 1024 * 1
private val server by lazy {
embeddedServer(Netty, port) {
embeddedServer(CIO, port) {
install(CallLogging)

Binary file not shown.

View File

@ -1 +1 @@
63124654d240f56684fc325e7260c68e
f439c33b829843211e2456803623cfc2

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;63124654d240f56684fc325e7260c68e",
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;f439c33b829843211e2456803623cfc2",
"lives": [
{
"name": "电视直播",