This commit is contained in:
lushunming 2025-07-23 09:28:23 +08:00
parent 23ca8d26f1
commit 112eedbe36
4 changed files with 4 additions and 6 deletions

View File

@ -12,7 +12,7 @@ import kotlinx.coroutines.runBlocking
object ProxyServer { object ProxyServer {
private val THREAD_NUM = Runtime.getRuntime().availableProcessors() private val THREAD_NUM = Runtime.getRuntime().availableProcessors()
private var partSize = 1024 * 1024 * 2 private val partSize = 1024 * 1024 * 2
private var port = 12345 private var port = 12345
private var httpServer: AdvancedHttpServer? = null private var httpServer: AdvancedHttpServer? = null
private val infos = mutableMapOf<String, MutableMap<String, MutableList<String>>>(); private val infos = mutableMapOf<String, MutableMap<String, MutableList<String>>>();
@ -104,9 +104,7 @@ object ProxyServer {
val finalEndPoint = if (endPoint == -1L) contentLength - 1 else endPoint val finalEndPoint = if (endPoint == -1L) contentLength - 1 else endPoint
response.setContentType("text/html") response.setContentType("text/html")
if (contentLength > 1024 * 1024 * 500) {
partSize = 1024 * 1024 * 5
}
response.setHeader("Connection", "keep-alive") response.setHeader("Connection", "keep-alive")
response.setHeader( response.setHeader(

Binary file not shown.

View File

@ -1 +1 @@
c90b8b7d36c7e7bfb9ae0f3176e2896b 7d7c276b1a5be6ee9db40b36ab5b49b9

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;c90b8b7d36c7e7bfb9ae0f3176e2896b", "spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;7d7c276b1a5be6ee9db40b36ab5b49b9",
"lives": [ "lives": [
{ {
"name": "电视直播", "name": "电视直播",