This commit is contained in:
parent
10c92b748c
commit
23ca8d26f1
|
|
@ -11,8 +11,8 @@ import kotlinx.coroutines.runBlocking
|
|||
|
||||
|
||||
object ProxyServer {
|
||||
private val THREAD_NUM = 8//Runtime.getRuntime().availableProcessors() * 2
|
||||
private const val partSize = 1024 * 1024 * 1
|
||||
private val THREAD_NUM = Runtime.getRuntime().availableProcessors()
|
||||
private var partSize = 1024 * 1024 * 2
|
||||
private var port = 12345
|
||||
private var httpServer: AdvancedHttpServer? = null
|
||||
private val infos = mutableMapOf<String, MutableMap<String, MutableList<String>>>();
|
||||
|
|
@ -104,6 +104,9 @@ object ProxyServer {
|
|||
val finalEndPoint = if (endPoint == -1L) contentLength - 1 else endPoint
|
||||
response.setContentType("text/html")
|
||||
|
||||
if (contentLength > 1024 * 1024 * 500) {
|
||||
partSize = 1024 * 1024 * 5
|
||||
}
|
||||
|
||||
response.setHeader("Connection", "keep-alive")
|
||||
response.setHeader(
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
bfe2c706e92c2fc9e470eaf042066acf
|
||||
c90b8b7d36c7e7bfb9ae0f3176e2896b
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue