From 7ea2597899895c8eda478bb8050437cfc28bac07 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Mon, 23 Oct 2023 01:49:10 +0800 Subject: [PATCH] Fix large torrent list parsing --- app/src/main/kotlin/com/hippo/ehviewer/client/EhEngine.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/client/EhEngine.kt b/app/src/main/kotlin/com/hippo/ehviewer/client/EhEngine.kt index e6cbce68f..41ad4c1b9 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/client/EhEngine.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/client/EhEngine.kt @@ -116,7 +116,7 @@ private fun rethrowExactly(code: Int, body: String, e: Throwable): Nothing { throw e } -val httpContentPool = DirectByteBufferPool(16, 16384) +val httpContentPool = DirectByteBufferPool(16, 0x20000) suspend inline fun fetchCompat(url: String, referer: String? = null, crossinline parser: (ByteBuffer) -> T): T { return if (isCronetSupported) {