This commit is contained in:
lushunming 2025-07-23 09:23:58 +08:00
parent 10c92b748c
commit 23ca8d26f1
4 changed files with 7 additions and 4 deletions

View File

@ -11,8 +11,8 @@ import kotlinx.coroutines.runBlocking
object ProxyServer { object ProxyServer {
private val THREAD_NUM = 8//Runtime.getRuntime().availableProcessors() * 2 private val THREAD_NUM = Runtime.getRuntime().availableProcessors()
private const val partSize = 1024 * 1024 * 1 private var 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,6 +104,9 @@ 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 @@
bfe2c706e92c2fc9e470eaf042066acf c90b8b7d36c7e7bfb9ae0f3176e2896b

View File

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