mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
fix(adb): read socket too slow can cause data loss
This commit is contained in:
parent
dce44ae9ac
commit
1aa7a92d2c
7 changed files with 190 additions and 164 deletions
|
@ -108,12 +108,7 @@ export class AdbDaemonSocketController
|
|||
(controller) => {
|
||||
this.#readableController = controller;
|
||||
},
|
||||
{
|
||||
highWaterMark: options.highWaterMark ?? 16 * 1024,
|
||||
size(chunk) {
|
||||
return chunk.byteLength;
|
||||
},
|
||||
},
|
||||
{ highWaterMark: 0 },
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue